subject

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.(1) Prompt the user to enter five numbers, being five people's weights. Store the numbers in a vector of doubles. Output the vector's numbers on one line, each number followed by one space. Enter weight l: 236.0 Enter weight 2: 89.5 Enter weight 3: 142.0 Enter weight 4: 166.3 Enter weight 5: 93.0 You entered: 236.00 89.50 142.00 166.30 93.00 (2) Also output the total weight, by summing the vector's elements.(3) Also output the average of the vector's elements. (4) Also output the max vector element. EX Enter weight 1: 236.0 Enter weight 2: 89.5 Enter weight 3: 142.0 Enter weight 4: 166.3 Enter weight 5: 93.0 You entered: 236.00 89.50 142.00 166.30 93.00 Total weight: 726.80 Average weight: 145.36 Max weight: 236.00

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, najerajulio
What is the foundation for proper monitoring, load balancing and routing in distributed systems
Answers: 3
image
Computers and Technology, 24.06.2019 17:00, yobanajk
Aman travel 200m towards east< br /> from his house then takes left< br /> to turn and moves 200 m north< br /> find the displacement & distance.< br />
Answers: 3
image
Computers and Technology, 25.06.2019 03:00, achewitt3965
What judgment would you make about open systems interconnect? not useful that it is a technology that it is a model that it does not pertain to technology
Answers: 1
image
Computers and Technology, 25.06.2019 08:30, atlasthegoat
While using pert (program evaluation review technique) and cpm (critical path method) techniques, activities that are not on the critical path are more inflexible than those activities on the critical path. select one: true false
Answers: 1
You know the right answer?
Output each floating-point value with two digits after the decimal point, which can be achieved by e...

Questions in other subjects: