Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is in C# language Create a new Console Application named ATM. In the application, we will be simulating an ATM. Create a new class
This is in C# language
- Create a new Console Application named ATM.
- In the application, we will be simulating an ATM. Create a new class called Account with the following properties: Account Number - only 10 digit numbers can be accepted PIN - only four digit numbers can be accepted Balance - the amount cannot go negative Add the following methods to the class: Deposit - adds money to the balance Withdrawal - debits money from the balance
- In the main method of the application create three new accounts and initialize them with an account number, PIN, and Balance.
- For each account perform the following and display the balance after each transaction:
- Prompt the user for a correct PIN
- Deposit money into the account
- Withdraw money from the account. There will be a 4% fee for the transaction. Prompt the user if they accept the fee. If there is not enough money in the balance (including the fee) for the withdrawal, do not subtract from the balance and notify the user.
- In the last line of program's main method, add Console.ReadKey(); to stop the programming from ending automatically.
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