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

 Q1. Write a sequential C code that reads 4 integers from

Q1. 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. (8 marks) 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. Sample run2 Enter 4 integers separated by spaces: 2 478 There are 2 entries above the average which is 5.3 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 Databases Questions!