subject

18.41 Clone of LAB: Variables/Assignments: Simple statistics Part 1
Given 3 integers, output their average and their product, using integer arithmetic.

Ex: If the input is:

10 20 5
the output is:

11 1000
Submit the above for grading. Your program will fail the test cases (which is expected), until you complete part 2 below but check that you are getting the correct average and product using integer division.

Part 2
Using the same 3 integers, output the average and product, using floating-point arithmetic.

Output all floating-point numbers with five digits after the decimal point, which can be achieved as follows:
Put x to output with 5 decimal places

Ex: If the input is:

10 20 5
the first line of output uses integer arithmetic and the second line output uses floating-point arithmetic:

11 1000
11.66667 1000.00000

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
Type the correct answer in the box. spell all words correctly.what kind of graph or chart does this image represent? the given image represents a (blank).
Answers: 2
question
Computers and Technology, 22.06.2019 00:40
If you arrive at the same time as another user straight across from you yield if a. they flash your headlights at you b. you can’t see their turn signals c. you’re going street and they’re running d. you’re turning they’re going straight plz
Answers: 1
question
Computers and Technology, 23.06.2019 22:00
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
Need fast im timed in a paragraph of 125 words, explain at least three ways that engineers explore possible solutions in their projects.
Answers: 2
You know the right answer?
18.41 Clone of LAB: Variables/Assignments: Simple statistics Part 1
Given 3 integers, output...
Questions
Questions on the website: 13722360