subject
Business, 12.04.2021 23:30 BonnyRios

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. (2 pts)
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. (1 pt)
(3) Also output the average of the vector's elements. (1 pt)
(4) Also output the max vector element. (2 pts)
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
LAB 6.26.1: LAB: Warm up: People's weights (Vectors) 0/60 main. cpp Load default template...

ansver
Answers: 3

Another question on Business

question
Business, 21.06.2019 21:30
Asavings account that pays interest every 3 months is said to have a interest period
Answers: 1
question
Business, 22.06.2019 00:50
cranium, inc., purchases term papers from an overseas supplier under a continuous review system. the average demand for a popular mode is 300 units a day with a standard deviation of 30 units a day. it costs $60 to process each order and there is a five−day lead−time. the holding cost for a paper is $0.25 per year and the company policy is to maintain a 98% service level. cranium operates 200 days per year.what is the reorder point r to satisfy a 98% cycleminus−service level? a. greater than 1,700 unitsb. greater than 1,600 units but less than or equal to 1,700 unitsc. greater than 1,500 units but less than or equal to 1,600 unitsd. less than or equal to 1,500 units
Answers: 1
question
Business, 22.06.2019 19:00
In north korea, a farmer’s income is the same as a dentist’s income. in a country with a mixed or market economy, the difference between those two professions might be more than 5 times different. how can you explain the fact that individuals doing the same work in different countries do not earn comparable salaries?
Answers: 1
question
Business, 22.06.2019 20:00
In myanmar, six laborers, each making the equivalent of $ 2.50 per day, can produce 40 units per day. in china, ten laborers, each making the equivalent of $ 2.25 per day, can produce 48 units. in billings comma montana, two laborers, each making $ 60.00 per day, can make 102 units. based on labor cost per unit only, the most economical location to produce the item is china , with a labor cost per unit of $ . 05. (enter your response rounded to two decimal places.)
Answers: 3
You know the right answer?
Output each floating-point value with two digits after the decimal point, which can be achieved by e...
Questions
question
History, 27.10.2020 03:50
question
Chemistry, 27.10.2020 04:00
Questions on the website: 13722367