Computers and Technology

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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:10, 17795
Look at the far left lane in the picture. explain what the red car is doing and what it needs to do to travel safely.
Answers: 2
image
Computers and Technology, 23.06.2019 14:30, kodak0531
Which of the following would not be considered a pc? a. mainframe b. desktop c. tablet pc d. laptop
Answers: 2
image
Computers and Technology, 23.06.2019 16:00, keyonaemanieevans
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
image
Computers and Technology, 24.06.2019 02:30, journeyhile5
How to apply the fly in effect to objects on a slide
Answers: 1
Do you know the correct answer?
Write a C program to do the following tasks: a) Read the grades of students in the class from the k...

Questions in other subjects:

Konu
History, 22.07.2019 15:10
Konu
Mathematics, 22.07.2019 15:10
Konu
Biology, 22.07.2019 15:10