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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started