Question: Create a C++ program to simulate the actions of a realistic ATM machine. You must create a new class called ATM machine, and be able

Create a C++ program to simulate the actions of a realistic ATM machine. You must create a new class called ATM machine, and be able to create a variable (object) of this type in your main() function. Using this object, perform all the following functions:

Initializes a bank account to $1000 (Hint: use the constructor)

Supports a function to make a deposit. Deposits can be cash or check. Cash deposits can be any arbitrary value less than $100, while check deposits are limitless.

Supports a function to withdraw cash. The maximum withdrawal amount is $200, and withdrawal amounts must always be a multiple of 20.

Supports a simple function check balance, which prints the current account balance on screen.

Use password protection to perform all transactions. Your program must ask for a passcode before it allows the user to perform any of these functions. When a user enters the password, your terminal should either print stars (*) or print nothing at all (i.e., one cant see the actual letters being typed on screen). The initial password can be hard-coded into your program, beyond which the user is free to change the passcode anytime as long as they can input the current passcode. (Hint: Youll need to save these passcodes on a file for persistent storage).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!