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
Match the various steps in the creative process undertaken by the ad agency for developing the campaign for wpu, to the steps in young's model of the creative process.creative process in developing wpu's campaignyoung's modelafter intensive analysis of the data and several rounds of brainstorming, the agency executives decided to take a break from this project (the wpu campaign), and instead work on a different client's project before tackling the wpu project again.using a combination of animatics and storyboards, the ad agency conducted research with a representative sample of sixty target consumers to pretest the campaign theme and the creative execution.during a brainstorming session in the creative department, a copywriter's suggestion for a slogan for wpu was recognized as an excellent central idea that could drive the campaign for wpu.the account planning, account management and creative departments at the ad agency had a series of meetings and brainstorming sessions to discuss the creative brief and the results of all the primary and secondary research done with the target consumers.the account planning and the account management groups at the ad agency conducted primary research with a representative sample of the target segment and also studied secondary research data to gain insights required for the campaign development process.
Answers: 2
question
Business, 21.06.2019 21:40
Morgana company identifies three activities in its manufacturing process: machine setups, machining, and inspections. estimated annual overhead cost for each activity is $168,000, $315,900, an $97,200, respectively. the cost driver for each activity and the expected annual usage are number of setups 2,100, machine hours 24,300, and number of inspections 1,800. compute the overhead rate for each activity. machine setups $ per setup machining $ per machine hour inspections $ per inspection
Answers: 1
question
Business, 22.06.2019 01:30
Can you post a video on of the question that you need on
Answers: 2
question
Business, 22.06.2019 09:30
Oliver's company is planning the launch of their hybrid cars. the company has included "never-before-seen" product benefits in the hybrid cars. which type of advertising should oliver's company use for the new cars?
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
question
Mathematics, 16.04.2020 23:09
Questions on the website: 13722360