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