Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Statistical And Scientific Database Management International Working Conference Ssdbm Rome Italy June 21 23 1988 Proceedings Lncs 339

Authors: Maurizio Rafanelli ,John C. Klensin ,Per Svensson

1st Edition

354050575X, 978-3540505754

More Books

Students also viewed these Databases questions

Question

What is computer neworking ?

Answered: 1 week ago

Question

e. What do you know about your ethnic background?

Answered: 1 week ago

Question

b. Why were these values considered important?

Answered: 1 week ago