Question
THE CODE SHOULD BE IN C++ LANGUAGE. Write a C++ program to print the total obtained marks and grade of a student after taking all
THE CODE SHOULD BE IN C++ LANGUAGE.
Write a C++ program to print the total obtained marks and grade of a student after taking all the required inputs using the grading policy given.
Assessment Activity | Percentage |
Assignments | 10% |
Quizzes | 10% |
Mid Term | 30% |
Project | 10% |
End Term | 40% |
Make the menu-driven program and use a loop so that the user can repeat the program for different values.
Grade calculation chart is given below.
Note: Use switch statement for grade calculation.
Marks | Grade |
90-100 | A |
80-89 | B |
70-79 | C |
60-69 | D |
50-59 | E |
Less than 50 | F |
Sample Output:
Enter assignments marks out of 10: 7
Enter quizzes marks out of 10: 8
Enter mid-term marks out of 30: 23
Enter project marks out of 10: 6
Enter finals marks out of 40: 34
Your total marks are 78 and grade is C
Do you want another try (y/n): y
Enter assignments marks out of 10: 9
Enter quizzes marks out of 10: 9
Enter mid-term marks out of 30: 27
Enter project marks out of 10: 8
Enter final marks marks out of 40: 36
Your total marks are 89 and grade is B
Do you want another try (y/n): n
Thank You
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started