Question
Write a C program (with meaningful comments) to solve a problem described in English. Create an IPO. We want to count how many passing grades
Write a C program (with meaningful comments) to solve a problem described in English. Create an IPO.
We want to count how many passing grades are entered. We dont know how many grades there will be. Use a sentinel controlled whileloop 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. If there are any grades that are out of the range 0 100, present an error message to the user, and do not count that grade as passing. We also would like to see what percentage of the valid grades are passing.
Create two more test cases.
Use following one in addition to the two you create.
Grades Entered: Expected Results
45
90
70
87
123 That is not a valid grade!
100
-1 You entered 4 passing grades.
80.0% of the valid grades entered are passing grades.
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