Question: 1. Ask the user to enter a name or 'q' to quit 2. While the user has not entered 'q' ask the user to enter

1. Ask the user to enter a name or 'q' to quit 2. While the user has not entered 'q' ask the user to enter an amount "account balance" 3. Ask the user to enter a number "amount" 4. If the amount is positive, calculate the "new account balance" by adding the amount and the account balance, print out the new account balance 5. If the amount is negative, calculate the "new account balance" by subtracting the amount from the account balance, print out "Account is overdrawn" and the new account balance 6. When the user enters 'q', quit the program. The program should continue to prompt the user to enter a name until the user enters 'q'. 7. Round all numeric outputs to 2 decimal places.

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!