Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago