Question: Write a program java that prompt the student to enter the number of courses studied. Then for each course the student enters the score which
Write a program java that prompt the student to enter the number of courses studied. Then for each course the student enters the score which must be between 0 and 100.
The program prints:
- The average score (avg sum of scores/number of courses)
- The Maximum score entered
- The minimum score entered
- The number of successful courses (i.e., score>= 60)
- The number of failed courses (i.e., score <60)
Note:
Data entry control must be carried out: the program must not accept any score not between 0 and 100, so if the score is not accepted, an error message will be displayed, and the program prompt the student to enter a correct score
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
