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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:00, sdonachy7
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 3
image
Computers and Technology, 24.06.2019 13:00, juuuuuu42
George heard about the benefits of a data warehouse. he wants to try implementing one for his organization. however, he is afraid that transferring data to the data warehouse will affect transaction time. which element ensures that transactions are not affected when moving data to a warehouse? when data is transferred to a data warehouse, the a area frees the source system to continue transaction processing.
Answers: 2
image
Computers and Technology, 24.06.2019 18:10, albattatasraap5wymy
Most information security incidents will occur because of select one: a. users who do not follow secure computing practices and procedures b. increases in hacker skills and capabilities c. poorly designed network protection software d. increasing sophistication of computer viruses and worms
Answers: 1
image
Computers and Technology, 25.06.2019 00:30, jennynmike03
Which of these serves as a bridge between the programming team and the audio team?
Answers: 2
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 in other subjects:

Konu
Mathematics, 03.04.2020 05:31
Konu
Mathematics, 03.04.2020 05:31