Answered step by step
Verified Expert Solution
Question
1 Approved Answer
coral 1 1 . 7 LAB: Variables / Assignments: Simple statistics Part 1 Given 3 integers, output their average and their product, using integer arithmetic.
coral LAB: VariablesAssignments: Simple statistics Part Given integers, output their average and their product, using integer arithmetic. Ex: If the input is: the output is: Submit the above for grading. Your program will fail the test cases which is expected until you complete part below but check that you are getting the correct average and product using integer division. Part Using the same integers, output the average and product, using floatingpoint arithmetic. Output all floatingpoint numbers with five digits after the decimal point, which can be achieved as follows: Put x to output with decimal places Ex: If the input is: the first line of output uses integer arithmetic and the second line output uses floatingpoint arithmetic:
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