Answered step by step
Verified Expert Solution
Link Copied!

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 11.7 LAB: Variables/Assignments: Simple statistics Part 1 Given 3 integers, output their average and their product, using integer arithmetic. Ex: If the input is: 10205 the output is: 111000 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: 10205 the first line of output uses integer arithmetic and the second line output uses floating-point arithmetic: 11100011.666671000.00000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Logics For Databases And Information Systems

Authors: Jan Chomicki ,Gunter Saake

1st Edition

1461375827, 978-1461375821

More Books

Students also viewed these Databases questions

Question

1. Explain how business strategy affects HR strategy.

Answered: 1 week ago