Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Input a list of students names and final grades ( each student with one final grade ) and store them in parallel arrays. End the
Input a list of students names and final grades each student with one final grade and store them in parallel arrays. End the input with a sentinel value. You have to use input validation to validate input grades to make sure they are in number format and in range
After completing all inputs. Figure out and print out the average of all the grades of the students. Find and print out the student who's grade is highest. Find and print out the student who's grade is lowest. Print out all student with grade with a message "Congratulations, Name, Grade, You passed this class!", for those whose grades Print out with a message: Sorry Name, Grade, You failed this class!"
Print out all student with grade with a message "Congratulations, Name, Grade, You passed this class!"
Print out all student with grade with a message "Sorry, Name, Grade, You failed this class!"
Print out the average of all students.
Print out student's name who's grade is highest.
Print out student's name who's grade is lowest.
Example: "Congratulations, Name: David, Grade: You passed this class!"
Sorry, Name: Kevin, Grade: You failed this class!"
"The average is
"David with the highest score of
Kevin with the lowest score of
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