Mathematics, 20.09.2020 07:01 maganns14
Given 4 integers, output their product and their average, using integer arithmetic. Ex: If the input is: 8 10 5 4 the output is: 1600 6 Note: Integer division discards the fraction. Hence the average of 8 10 5 4 is output as 6, not 6.75. Note: The test cases include four 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, four 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 product and average, using floating-point arithmetic. Output each floating-point value with three digits after the decimal point, which can be achieved by executing cout << fixed << setprecision(3); once before all other cout statements. Ex: If the input is: 8 10 5 4 the output is: 1600 6 1600.000 6.750 Note that fractions aren't discarded, and that overflow does not occur for the test case with large values. answers must provided using C++
Answers: 2
Mathematics, 21.06.2019 14:30
Tanya has $42 to spend at the dolphin island store. tshirts sell for $7 each and a pair of sunglases sells for $6.tanya buys 3 tshirts. how many pairs of sunglases can she buys with the amount of money she has left
Answers: 3
Mathematics, 21.06.2019 16:00
Its due ! write an equation in which the quadratic expression 2x^2-2x 12 equals 0. show the expression in factored form and explain what your solutions mean for the equation. show your work.
Answers: 1
Mathematics, 21.06.2019 19:00
Atriangle has a side lengths of 18cm, 80 cm and 81cm. classify it as acute obtuse or right?
Answers: 2
Mathematics, 21.06.2019 21:00
Which expression is equal to (21)(7)(3x) using the associative property? (21 · 7 · 3)x (7)(21)(3x) 32(7 + 3x) (3x)(7)(21)
Answers: 2
Given 4 integers, output their product and their average, using integer arithmetic. Ex: If the input...
Mathematics, 02.01.2022 01:00
World Languages, 02.01.2022 01:00
English, 02.01.2022 01:00
Advanced Placement (AP), 02.01.2022 01:00
Physics, 02.01.2022 01:00
Mathematics, 02.01.2022 01:00
Chemistry, 02.01.2022 01:00
English, 02.01.2022 01:00
Mathematics, 02.01.2022 01:00
Chemistry, 02.01.2022 01:10
Mathematics, 02.01.2022 01:10