Question: Write a sequential C code that reads 4 integers from the user and then prints their average along with how many integers are above

  • Write a sequential C code that reads 4 integers from the user 

Write a sequential C code that reads 4 integers from the user and then prints their average along with how many integers are above average. Sample run1 (green text is user input): Enter 4 integers separated by spaces: 1 2 3 10 There is 1 entry above the average which is 4.0 Sample run2: Enter 4 integers separated by spaces: 247 8 There are 2 entries above the average which is 5.3 (8 marks) Marking Guide: +2 for reading integers, +2 for finding sum and avg, +4 for counting and printing results.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!