Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C language NOT C++, C# We want to count how many passing grades are entered. We don't know how many grades there will be.

image text in transcribedimage text in transcribed

Using C language NOT C++, C#

We want 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. 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. Create a loop that will output all the multiples of 5 that are greater than zero and less than 60 (do not include 60). 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55 Create a loop that will output all the numbers less than 200 that are evenly divisible by both 2 and 7. 14 28... Create a loop that will calculate the sum of the multiples of 8 that are between 100 and 500. Output the sum only. Create a loop that will output the sum of all odd numbers between 20 and 100

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_2

Step: 3

blur-text-image_3

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

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

8. Demonstrate aspects of assessing group performance

Answered: 1 week ago

Question

What are the determinants of cash cycle ? Explain

Answered: 1 week ago