Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program to simulate an account transaction. There are three types of accounts: checking, savings, and investment At the start of your program, ask
Write a program to simulate an account transaction. There are three types of accounts: checking, savings, and investment At the start of your program, ask for the initial balance of the accounts. Don't allow any negative balances. Then display a menu (like a typical menu you see on an ATM machine, without the graphics) and prompt the user to select one of these options: (1: Show Account type and balance, 2: Change Account type, 3: Withdrawal, 4: Deposit, or 5: Exit). Reject transactions that overdraw an account Display the starting and ending balance for each transaction along with account type. You program must never end unless user chooses exit option from the menu. Test your program thoroughly (especially for all account types). 1
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