Question: Write a program that prompts the user to enter the name of student and their respective scores, and output the student names with highest and

Write a program that prompts the user to enter the name of student and their respective scores, and output the student names with highest and lowest scores, respectively. The input must be terminated by entering the word 'stop' in the student name. Sample program output:

 


Enter student's name: Romeo

Enter score: 55

Enter student's name: Lily

Enter score: 36

Enter student's name: Vince

Enter score: 45

Enter student's name: stop

Romeo got the highest score

Lily got the lowest score

//end of program execution

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 Programming Questions!