Question: C++ Exercise #4: Grade of Average Mark Write a program that finds the grade corresponding to the average mark. The program uses a function called

 C++ Exercise #4: Grade of Average Mark Write a program that C++

Exercise #4: Grade of Average Mark Write a program that finds the grade corresponding to the average mark. The program uses a function called averagelint) that takes an integer representing the number of marks, then the function reads the marks and returns their average. Write another function called grade(double) that takes a double representing the average of marks, and returns a characher which is the average grade. Write a main function which calls the two functions averagefint) and grade(double) and prints the grade of the marks. Sample input/output: nter the number of narks: Enter a mark: 63 Enter a nark: 77 Enter a mark: 81 Enter a mark: 94 Enter a nark: 52 5 The grade of the 5 marks is: C

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!