The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 327 Weeks Ago, 4 Days Ago |
| Questions Answered: | 12843 |
| Tutorials Posted: | 12834 |
MBA, Ph.D in Management
Harvard university
Feb-1997 - Aug-2003
Professor
Strayer University
Jan-2007 - Present
A1410 'Gentle" exercise10.1
15.1 Warm up: People's weights (arrays) (C++) Snflafig 'I'l'iscontent is controlled by your instructor. and is notzyBooks content. Direct qmstionsoroonoems about this omtentto yar'nstructor. Ifyou have anytechnioel issues
with the zyLab submission system. use the 'Trctble with lab?‘ button at the bottom ofthe lab. (1) Prompt the user to enter five numbers. being five people's weights. Store the numbers in an array:r cf doubles. Output the array's numbers on one
line. each number followed by one space. [2 pts) Ex: Enter weight 1: 236
Enter weight 2: 89.5
Enter weight 3: 142
Enter weight 4: 166.3
Enter weight 5: 93 You entered: 236 89.5 142 166.3 93 [2) Also output the total weight. by summing the array's elements. [1 pt)
[3] Also output the average of the array'e elements. [1 pt]
[4) Also output the max arrayr element. (2 pts) Ex: Enter weight 1: 236
Enter weight 2: 89.5
Enter weight 3: 142
Enter weight 4: 166.3
Enter weight 5: 93 You entered: 236 89.5 142 166.3 93
Total weight: 726.8 Average weight: 145.36 Mex weight: 236
-----------