Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C Programming- I need one source code file but 3 images of each code running. Each will show one set of test data. The first
C Programming- I need one source code file but 3 images of each code running. Each will show one set of test data.
You're the teacher now! You need to count how many passing grades are entered. We don't know how many grades there will be. Use a sentinel controlled while loop that will ask the user to enter student grades until a value of -1 is entered. Use a counter variable to count all the grades that are passing grades, where 70 is the minimum passing grade (I know, you're a tough grader!) If there are any grades that are out of the valid range (O through 100), present an error message to the user, and do not count that grade as passing (or valid). We also would like to see what percentage of the valid grades are passing. Create 3 test cases. Use this as one of them: Grades Entered: 45 90 70 87 123 100 -1 Expected Results That is not a valid grade! You entered 4 passing grades. 80.0% of the valid grades are passing. Create two more sets of test data of your own, and include screenshots of your program running them. Demonstrate all program functionality. Activat Go to PC The first set of test data is given in the instructions.
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