Answered step by step
Verified Expert Solution
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.
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 100Step 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