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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 06:30, wwesuplexcity28
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
image
Computers and Technology, 23.06.2019 13:30, Gearyjames8
Anetwork security application that prevents access between a private and trusted network and other untrusted networks
Answers: 1
image
Computers and Technology, 24.06.2019 02:20, Jonny13Diaz
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
image
Computers and Technology, 24.06.2019 15:00, bsndb5638
Universal windows platform is designed for which windows 10 version?
Answers: 1
You know the right answer?
18.41 Clone of LAB: Variables/Assignments: Simple statistics Part 1
Given 3 integers, output...

Questions in other subjects:

Konu
History, 20.09.2020 03:01