subject

Write a C program to do the following tasks: a) Read the grades of students in the class from the keyboard (assume the grades are
integer in the range 0 to 100).
b) Find the average of the grades that are less than 50. If there are no grades less than 50, then display the message “No grades < 50”.
c) Find the average of the grades that are greater than or equal 50. If there are no
grades greater than or equal to 50, then display the message “No grades >= 50”.

The program should terminate if the input grade is negative. (Hint: Use sentinel-controlled repetition structure). Note that average of the grades might not be an integer and design your program considering that.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:00
Write a method named addall that could be placed inside the hashintset class. this method accepts another hashintset as a parameter and adds all elements from that set into the current set, if they are not already present. for example, if a set s1 contains [1, 2, 3] and another set s2 contains [1, 7, 3, 9], the call of s1.addall(s2); would change s1 to store [1, 2, 3, 7, 9] in some order. you are allowed to call methods on your set and/or the other set. do not modify the set passed in. this method should run in o(n) time where n is the number of elements in the parameter set passed in.
Answers: 2
question
Computers and Technology, 22.06.2019 22:20
Avariable of the data type arrays is storing 10 quantities. what is true about these quantities? a. the quantities all have different characteristics. b. the quantities all have the same characteristics. c. five quantities have the same and five have different characteristics. d. it is necessary for all quantities to be integers. e. it is necessary for all quantities to be characters.
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Q14 what is most important for you to choose before you build a network? a. private network b. nos c. network media d. network protocol e. directory service
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Which is a possible benefit of having a good credit history? having a checking account low interest rate on a car loan high interest rate on a credit card offer bankruptcy
Answers: 1
You know the right answer?
Write a C program to do the following tasks: a) Read the grades of students in the class from the k...
Questions
question
Business, 19.02.2021 21:50
question
Mathematics, 19.02.2021 21:50
question
Mathematics, 19.02.2021 21:50
question
SAT, 19.02.2021 21:50
Questions on the website: 13722361