subject
Mathematics, 09.10.2019 19:00 celestemaria0727

2.31 lab: 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 note: integer division discards the fraction. hence the average of 10 20 5 is output as 11, not 11.6667. note: the test cases include three very large input values whose product results in overflow. you do not need to do anything special, but just observe that the output does not represent the correct product (in fact, three positive numbers yield a negative output; wow). submit the above for grading. your program will fail the last test cases (which is expected), until you complete part 2 below. part 2 also output the average and product, using floating-point arithmetic. output each floating-point value with two digits after the decimal point, which can be achieved by executing cout < < fixed < < setprecision(2); once before all other cout statements. ex: if the input is: 10 20 5 the output is: 11 1000 11.67 1000.00 note that fractions aren't discarded, and that overflow does not occur for the test case with large values. lab

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 23:30
Arational number that is equivalent to -20/4?
Answers: 1
question
Mathematics, 22.06.2019 00:20
One file clerk can file 10 folders per minute. a second file clerk can file 11 folders per minute. how many minutes would the two clerks together take to file 672 folders?
Answers: 1
question
Mathematics, 22.06.2019 00:30
What are two numbers that have a sum of 15?
Answers: 2
question
Mathematics, 22.06.2019 02:30
There are three grizzly bears in the city zoo. yogi weighs 400.5 pounds, winnie weighs 560.35 pounds, and nyla weighs 628.29 pounds. what is the average weight of the three bears? (hint: what do they weigh all together? ) a. 502.97 pounds c. 604.38 pounds b. 529.71 pounds d. 794.57 pounds
Answers: 1
You know the right answer?
2.31 lab: simple statistics part 1 given 3 integers, output their average and their product, using...
Questions
question
Mathematics, 22.01.2022 06:00
Questions on the website: 13722360