Question
In C#: Assignment 4A: Im the best! For this part of the assignment, you will design a program that determines who has the highest test
In C#:
Assignment 4A: Im the best! For this part of the assignment, you will design a program that determines who has the highest test score in a class. Your job is to write a program that prompts the user to enter a number of students and each students name and test score. The program will display the name of the student with the highest test score. For simplicity, if more than one student has the highest test score, the program will display the name of the first student entered. An example is shown in Sample Output 2. Hint: You must use a for loop to take in the students names and test scores. A sample run is shown below. User input is in bold. Sample Output 1: Enter the number of students: 3 Enter each student name and test score Student: 1 Name: Tina Score: 50 Student: 2 Name: Joe Score: 90 Student: 3 Name: Bob Score: 80 Student with the highest score: Joe Sample Output 2: Enter the number of students: 4 Enter each student name and test score Student: 1 Name: Carlos Score: 60 Student: 2 Name: Ken Score: 80 Student: 3 Name: Tara Score: 80 Student: 4 Name: Jane Score: 80 Student with the highest score: Ken
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started