Write a C++ program that prompts the user to enter the marks of a test. This program should have a user-defined function named grade(), that takes in the marks and returns the grade obtained to the main() function to be displayed. The grading scale is as shown below:
Marks
Grade
80 to 100
A
60 to 79
B
40 to 59
C
0 to 39
F
Comments
Leave a comment