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

Other questions on the subject: Business

image
Business, 22.06.2019 05:50, mandy9386
Nichols inc. manufactures remote controls. currently the company uses a plantminuswide rate for allocating manufacturing overhead. the plant manager is considering switchingminusover to abc costing system and has asked the accounting department to identify the primary production activities and their cost drivers which are as follows: activities cost driver allocation rate material handling number of parts $5 per part assembly labor hours $20 per hour inspection time at inspection station $10 per minute the current traditional cost method allocates overhead based on direct manufacturing labor hours using a rate of $20 per labor hour. what are the indirect manufacturing costs per remote control assuming an method is used and a batch of 10 remote controls are produced? the batch requires 100 parts, 5 direct manufacturing labor hours, and 3 minutes of inspection time.
Answers: 2
image
Business, 22.06.2019 19:50, Salas1333
Which of the following would create the most money? the initial deposit is $6,500 and the required reserve ratio is 20 percent. the initial deposit is $3,000 and the required reserve ratio is 10 percent. the initial deposit is $7,500 and the required reserve ratio is 25 percent. the initial deposit is $4,500 and the required reserve ratio is 15 percent.
Answers: 1
image
Business, 22.06.2019 20:00, jakepeavy70
Question 6 of 102 pointswhich situation shows a constant rate of change? oa. the number of tickets sold compared with the number of minutesbefore a football gameob. the height of a bird over timeoc. the cost of a bunch of grapes compared with its weightod. the outside temperature compared with the time of day
Answers: 1
image
Business, 23.06.2019 00:00, laylaaaaah2054
3. which of the following occupations relate to a skill category of mathematics and data? select all that apply. (2 correct answers) engineer financial analyst mechanic sales person 4. which of the following occupations relate to a skill category of words and literacy? select all that apply. (2 correct answers) educator lawyer marketing manager psychologist architect
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:

Konu
Spanish, 08.03.2021 14:00
Konu
Mathematics, 08.03.2021 14:00
Konu
Biology, 08.03.2021 14:00
Konu
Health, 08.03.2021 14:00