A class has four papers in one term. Write a program that will read in a student’s score in four papers as integer and output the student’s average and grade according to the following table.
Average marks >= 80 are A Average marks >= 60 are B Average marks >= 50 are C Average marks >= 40 are D If the student scores less than 40 in any paper the grade will fail.
Use the Switch Statement to display the grade.
1. Average or Grade
Enter Your Choice: 1