Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem: Write a program that calculates the sum and the average of five dollar

ID: 3539695 • Letter: P

Question

Problem: Write a program that calculates the sum and the average of five dollar

amounts entered by the user. The output should also indicate the largest amount

and smallest amount entered. Use the following format for output:

(Assuming five numbers entered by the user are 34 56 89.58 23.9 0)

Result:

34.00

56.00

89.59

23.90

+ 0.00

The sum is 203.49

The average is 40.70

The largest

amount is 89.59

The smallest

amount is 0.00

Be sure to align your numbers by decimal point.HINT: setw, setprecision, left, right

Explanation / Answer

i can do it i m professional,but assured me about points and all.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote