Question: In C++ write a program that prompts the user to enter the number of students and each students name and score, and displays the name

In C++ write a program that prompts the user to enter the number of students and each students name and score, and displays the name and score of the student with the highest score and the student with the second-highest score. Sample Run Enter the number of students: 5 Enter a student name: Smith Enter a student score: 60 Enter a student name: Jones Enter a student score: 96 Enter a student name: Peterson Enter a student score: 85 Enter a student name: Greenlaw Enter a student score: 98 Enter a student name: Zhang Enter a student score: 95 Top two students: Greenlaw's score is 98.0 Jones's score is 96.0

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!