Question: Write a program that will prompt a user to enter three separate exam grades for three different students. ( all variables in this program will

Write a program that will prompt a user to enter three separate exam grades for three different students. (all variables in this program will be of datatype double, you can use variable names of your choice)
Calculate the average of the exam grades.
Print that average to the screen with 2 decimal places.
Then print a statement for each of the students stating whether their exam grade is higher than the average or less than the average. (Do not worry about equal to the average....the sample data I've provided does not have the issue)
Test your program with the following example data:
827593
Sample output:
The exam average is 72.52
Student 1's exam is higher than the average.
Student 2's exam is lower than the average.
Student 3's exam is higher than the average.

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 Programming Questions!