Task 1: Write a program that will add the marks of a student in Theory and in practical of C Programming and test whether the mark is passed or failed. If the total mark is >= 75, the message displayed should be "You passed the coursel". Otherwise, the message should be "You failed the coursel"

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section: Chapter Questions
Problem 7PP
icon
Related questions
Question
IV. PROCEDURES / RESULTS / SKILLS TESTING
Skills Testing 1 (Students should work on their own)-Refer to Example 2. Page 3
Task 1: Write a program that will add the marks of a student in Theory and in practical of C Programming
and test whether the mark is passed or failed. If the total mark is >= 75, the message displayed should be
"You passed the course!". Otherwise, the message should be "You failed the coursel"
Screen view result:
Enter the Theory mark of the student in C programming (0-70)
Enter the Practical mark of the student in C programming (0-30)
50
25
The total mark is 75 and you passed the course!
ONLINE COMPILER
Transcribed Image Text:IV. PROCEDURES / RESULTS / SKILLS TESTING Skills Testing 1 (Students should work on their own)-Refer to Example 2. Page 3 Task 1: Write a program that will add the marks of a student in Theory and in practical of C Programming and test whether the mark is passed or failed. If the total mark is >= 75, the message displayed should be "You passed the course!". Otherwise, the message should be "You failed the coursel" Screen view result: Enter the Theory mark of the student in C programming (0-70) Enter the Practical mark of the student in C programming (0-30) 50 25 The total mark is 75 and you passed the course! ONLINE COMPILER
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Concept of pointer parameter
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning