Question: C# Create a new Console Application named ATM. In the application, we will be simulating an ATM. Create a new class called Account with the
C# 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 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 PINDeposit money into the accountWithdraw money from the account. There will be a 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.
Add your name and the date as comments at the top of the code file.
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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
