Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started