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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!