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

Write a program that does the following in order: 1. Ask user

 

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

Step by Step Solution

3.25 Rating (146 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a Python program that does what youve described python Step 1 Ask user to enter a name name ... View full answer

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!