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
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