Question: Write one C program (with meaningful comments) to solve below problem described in English. Create an IPO / Flow chart. We want to count how

Write one C program (with meaningful comments) to solve below problem described in English. Create an IPO / Flow chart.

We want to count how many passing grades are entered. We dont 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. 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 valid or passing. We also would like to see what percentage of the valid grades are passing (Please note that this is calculated by dividing number of passing grades with number of valid grades and multiplying by 100).

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.

Deliverables: Paste code, program output and screen shots into this Word document. Presenting your solution is part of the assignment.

An IPO or Flowchart for the problem solution design.(5 points) Two test cases that show two sets of input data, and the expected results of running the program for each set of input data. These are to be written separately before running the program and taking the screen shots. ( 5 points) The code that solves the passing grades problem. Remember to use meaningful comments. (35 points) Output from running the program with 3 different test cases. Use two test cases that you created and the one I have given you. (5 points) Submit one C source file with the code that solved the given problem. Submit a word document with IPO / Flow chart, two additional test cases written in English and the output screen shots of running the code with three test cases.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!