Question: Write a C++ program to implement this task. Students are registered in 3 courses in a semester. To pass each course, students have to make

Write a C++ program to implement this task.

Students are registered in 3 courses in a semester. To pass each course, students have to make a grade greater than or equal to 40. You have to write a program to determine if the student will pass or fail the semester, based on the following criteria:

A student passes if all three courses are passed. Additionally, a student may pass if only one subject is failed, and the overall average grade for the 3 courses is greater than or equal to 50.

Your program should prompt the user to enter grades for the three courses. Make use of a named constant for defining the pass mark of 40.

SAMPLE RUN 1

Enter the 3 grades, separated by a space:

75 85 90

You entered: Grade_1 = 75 Grade_2 = 85 Grade_3 = 90 

Average Grade: 83.3333 You Passed :-)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!