Business
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...

answer
Answers: 3

Other questions on the subject: Business

image
Business, 21.06.2019 22:50, chloespalding
Assume that the governance committee states that all projects costing more than $70,000 must be reviewed and approved by the chief information officer and the it senior leadership team (slt). at this point, the cio has the responsibility to ensure that management processes observe the governance rules. for example, the project team might present the proposed project in an slt meeting for a vote of approval. what does this scenario illustrate about organizational structure?
Answers: 2
image
Business, 22.06.2019 13:30, Mariaisagon9050
Jose recently died with a probate estate of $900,000. he was predeceased by his wife, guadalupe, and his daughter, lucy. he has two surviving children, pete and fred. jose was also survived by eight grandchildren, pete’s three children, naomi, daniel, nick; fred’s three children, heather, chris and steve; and lucy’s two children, david and rachel. jose’s will states the following “i leave everything to my three children. if any of my children shall predecease me then i leave their share to their heirs, per stirpes.” which of the following statements is correct? (a) under jose’s will rachel will receive $150,000. (b) under jose’s will chris will receive $150,000. (c) under jose’s will nick will receive $100,000. (d) under jose’s will pete will receive $200,000.
Answers: 1
image
Business, 22.06.2019 19:20, kimmosley80
Although appealing to more refined tastes, art as a collectible has not always performed so profitably. during 2003, an auction house sold a sculpture at auction for a price of $10,211,500. unfortunately for the previous owner, he had purchased it in 2000 at a price of $12,177,500. what was his annual rate of return on this sculpture? (a negative answer should be indicated by a minus sign. do not round intermediate calculations and enter your answer as
Answers: 2
image
Business, 22.06.2019 19:50, Amholloway13
The interaction of individual choices because a type of fish is on the verge of extinction, the government imposes rules that prohibit fishing in the publicly owned spawning grounds. at first owners of fshing bouts complain about this restriction on where they can fish, but soon they notice that the number of adult fish swimming outside the protected area is much higher than it was before. with the restriction, each fishing boat ends up catching more fish than it did before the r which of the following principles of economic interaction best describes this scenario? o there is a tradeoff between equality and efficiency o markets usually lead to efficiency. o when markets do not achieve efficiency, government intervention can improve overall welfare o markets allocate goodseffectively
Answers: 1
Do you know the correct answer?
Output each floating-point value with two digits after the decimal point, which can be achieved by e...

Questions in other subjects:

Konu
Mathematics, 31.08.2021 23:30
Konu
Mathematics, 31.08.2021 23:30