Question: 3 . 1 6 LAB: Simple statistics Part 1 Given 3 integers, output their sum, average, and product, using integer arithmetic. Ex: If the input
LAB: Simple statistics
Part
Given integers, output their sum, average, and product, using integer arithmetic.
Ex: If the input is the output is:
Note: Integer division discards the fraction. Hence the average of is output as not
Note: Remember to declare integer variables
Submit the above for grading. Your program will fail the last test cases which is expected until you complete part and below.
Part
Also output the sum, average and product, using floatingpoint arithmetic.
Ex: If the input is the output is:
Note that fractions aren't discarded.
Part
Finally, output the distance of each number from the average, using integer arithmetic.
Ex: If the input is the output is:
In C code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
