Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that computes the average test score over an unspecified number of tests as follows: ( 1 ) Ask the user to enter
Write a program that computes the average test score over an unspecified number of tests as follows: Ask the user to enter numeric
grades; as long as there are more grades, add them to the total; use a counter variable to track the number of grades entered by the
user; stop when the user enters a negative score; output the average grade for the class.
Sample run of program:
Enter a numeric grade:
Enter a numeric grade:
Enter a numeric grade:
Enter a numeric grade:
Enter a numeric grade:
Enter a numeric grade:
Enter a numeric grade:
The average grade is
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