View the step-by-step solution to:

2. Write a program that allows the user to enter students' names followed by their test scores and outputs the following information (assume that the...

2. Write a program that allows the user to enter students’ names followed by their test scores and outputs the following information (assume that the maximum number of students in the class is 50; if the number of students is less than 50, to indicate the end of input data, after entering the last student’s data, on a line by itself, hold the ctrl key/press z and then press the Enter key):
a) Class average
b) Names of all the students whose test scores are below the class average, with an appropriate message. (ex. Su, your score is below class average.)
c) Highest test score and the names of all the students having the highest score.
Use the following input data:
Bob 78
Jane 56
Andrew 98
Allison 74
Marrisa 58
Jeff 83
Beverly 66
Steve 87
Jill 94
Stan 61

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question