![dnation94](/avatars/12839.jpg)
dnation94
10.09.2019 •
Computers and Technology
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.
Solved
Show answers
More tips
- G Goods and services Stock center - a modern way of optimizing logistics...
- F Food and Cooking How to Properly Wash a Down Jacket? Tips from Experts...
- C Computers and Internet Thin Client: What It Is and Why You Need It?...
- F Food and Cooking The Most Delicious and Simple Fish in Batter Recipe...
- F Food and Cooking Red Caviar: How to Choose the Best?...
- C Computers and Internet Clearing Cache: How to Speed Up Your Browser...
- S Style and Beauty How are artificial nails removed?...
- S Style and Beauty Secrets of Tying a Pareo: 5 Ways...
- F Food and Cooking Everything You Need to Know About Pasta...
Answers on questions: Computers and Technology
- C Computers and Technology Suppose a TCP entity receives a digital voice stream from the application layer. The voice stream arrives at a rate of 8000 bytes/second. Suppose that TCP arranges bytes into 80...
- C Computers and Technology Apound of margarine costs $1.39. what is the cost of a kilogram of margarine...
- S Social Studies Why do you need social studies in class 8...
- G Geography Read the quotation to the right. What argument is Powderly making in this statement? Labor unions achieved more freedom than the American Revolution. Labor unions caused more violence...
- H History What was the Soil Conservation Act meant to do? a. end farming on the plains b. drastically reduce farming on the Plains c. expand irrigation and crop rotation d. stop flooding...
- M Mathematics A fair six-sided die is thrown four times Find the probability, correct to three decimal places, of getting i) exactly one six occurs ii) at least one six occurs...
- M Mathematics What is the solution to the following system of equations? [3x-2y = 12 16x-4y = 24 O It has infinitely many solutions. It has no solution. It has one solution (2, -3). It has one...
- M Mathematics A man is walking down a very long flight of steps in a stairwell. He begins at 136 feet above ground level. He walks down with a steady rate such that he gets closer to the ground...
- M Mathematics Math. please help..with working ...
- E English She has not ridden a horse before...
Ответ:
the metal part (the heatsink) removes hot air from the cpu and the fan exhausts it out the side, just like an engine, which uses coolant and a radiator to remove heat for optimal performance.