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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started