Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java How To Program Late Objects Version

Authors: Paul Deitel, Deitel & Associates

8th Edition

0136123716, 9780136123712

More Books

Students also viewed these Computer Network questions