Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Genomes Browsers And Databases Data Mining Tools For Integrated Genomic Databases

Authors: Peter Schattner

1st Edition

0521711320, 978-0521711326

More Books

Students also viewed these Databases questions

Question

2. To store it and

Answered: 1 week ago

Question

Define organisational structure

Answered: 1 week ago

Question

Define line and staff authority

Answered: 1 week ago

Question

Define the process of communication

Answered: 1 week ago

Question

Explain the importance of effective communication

Answered: 1 week ago

Question

* What is the importance of soil testing in civil engineering?

Answered: 1 week ago