![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 10.09.2019 18:30, joshlynn52
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.
![answer](/tpl/images/cats/otvet.png)
Answers: 1
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 06:00, tchloe448
What makes myhexadecimalnumber a child of mynumber? which methods does myhexadecimalnumber inherit directly from the mynumber class? what can an instance of the mynumber class do? what can an instance of the myhexadecimalnumber class do? which methods are overridden? why are they overridden? how many examples of overloading are there? why was this done? where is the super keyword used? what is it doing? why isnβt the incoming value set immediately in the second myhexadecimalnumber constructor? how many examples can you find of an inherited method being called?
Answers: 1
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 01:30, quintinlarrieu
How would you cite different books by the same author on the works cited page? moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. moore, jack h. ballads in poetry β a critical review. dallas: garden books, 1962. print. moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. βββ. ballads in poetry β a critical review. dallas: garden books, 1962. print. moore, jack h. ballads in poetry β a critical review. dallas: garden books, 1962. print. moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. moore, jack h. ballads in poetry β a critical review. dallas: garden books, 1962. print. βββ. folk songs and ballads. salem: poetry press, 1999. print.
Answers: 2
Do you know the correct answer?
2.31 lab: simple statistics part 1 given 3 integers, output their average and their product, using...
Questions in other subjects:
![Konu](/tpl/images/cats/biologiya.png)
Biology, 12.02.2021 18:10
![Konu](/tpl/images/cats/istoriya.png)
History, 12.02.2021 18:10
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 12.02.2021 18:10
![Konu](/tpl/images/cats/obshestvoznanie.png)
![Konu](/tpl/images/cats/informatica.png)
Computers and Technology, 12.02.2021 18:10
![Konu](/tpl/images/cats/mat.png)
Mathematics, 12.02.2021 18:10
![Konu](/tpl/images/cats/en.png)
English, 12.02.2021 18:10
![Konu](/tpl/images/cats/mat.png)
Mathematics, 12.02.2021 18:10