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 19:00
Find the equation of the line with slope =8 and passing through (6,53) write your equation in the form y=mx+b
Answers: 1
question
Mathematics, 21.06.2019 22:30
21 a stick 7 inches long is broken into two pieces, so that one piece is twice as long as the other one. how long are the two pieces?
Answers: 1
question
Mathematics, 22.06.2019 00:30
The scatter plot shows the number of animal cells clara examined in a laboratory in different months: plot ordered pairs 1, 20 and 2, 60 and 3,100 and 4, 140 and 5, 180 what is the approximate predicted number of animal cells clara examined in the 9th month?
Answers: 3
question
Mathematics, 22.06.2019 01:30
As a self-employed seamstress, you know that it takes 7 yards of material to make 3 jackets. you bought 15 yards of material to make 7 jackets. did you buy enough material? if not, how much were you over or under?
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
Business, 20.11.2020 17:00
Questions on the website: 13722367