Advertisements
Advertisements
Question
Let us add more functionality to our SMIS developed in Chapter 5.
6.1 Write a menu-driven program that has options to
- accept the marks of the student in five major subjects in Class X and display the same.
- calculate the sum of the marks of all subjects. Divide the total marks by the number of subjects (i.e. 5), calculate percentage = total marks/5, and display the percentage.
- Find the grade of the student as per the following criteria:
Criteria | Grade |
percentage > 85 | A |
percentage < 85 && percentage >= 75 | B |
percentage < 75 && percentage >= 50 | C |
percentage > 30 && percentage <= 50 | D |
percentage <30 | Reappear |
Let’s peer review the case studies of others based on the parameters given under “DOCUMENTATION TIPS” at the end of Chapter 5 and provide feedback to them.
One Line Answer
Solution
Do it Yourself.
shaalaa.com
Flow of Control
Is there an error in this question or solution?