Question: Write a program that does the following in order: 1 . Ask user to enter a name 2 . Ask the user to enter five

Write a program that does the following in order: 1. Ask user to enter a name 2. Ask the user to enter five numbers amount1,amount2,amount3,amount4,amount53. Calculate the sum of the numbers amount1,amount2,amount3,amount4,amount54. If the sum is greater than 0, print out the sum 5. If the sum is equal to zero, print out Your account balance is zero6. If the sum is less than 0, print out Your account is overdrawn and the negative amount7. Round all print values to 1 decimal place

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!