Answered step by step
Verified Expert Solution
Link Copied!

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

  1. Create a new Console Application named ATM.
  2. 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
  3. In the main method of the application create three new accounts and initialize them with an account number, PIN, and Balance.
  4. For each account perform the following and display the balance after each transaction:
    1. Prompt the user for a correct PIN
    2. Deposit money into the account
    3. 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.
  5. 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

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

DNA Databases

Authors: Stefan Kiesbye

1st Edition

0737758910, 978-0737758917

More Books

Students also viewed these Databases questions