Question
C# To take away or to give? A bank maintains three types of accounts namely savings, checking, and loan. Write a C# program that uses
C#
To take away or to give? A bank maintains three types of accounts namely savings, checking, and loan. Write a C# program that uses a while or do while loop. Inside the loop, prompt the user to input from the keyboard an account number, an account type (s for savings or d for checking c for loan), current balance, and a deposit amount. Calculate interest as follows: For savings accounts, the deposit amount is added to the current balance plus 4% interest on the new balance is added. For checking accounts, the deposit amount is added to the current balance. For loans, the deposit amount is subtracted from the current balance. Display a message to the console window showing the new balance. Here is an example interaction session:
Enter account number: 1111 Enter account type: s Enter the current balance on the account: 5000 Enter deposit amount: 500 New balance on savings account 1111 is $5,720.00 . .
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