Skip to content

griffim/CPP_ATM_Menu

Repository files navigation

"# CPP_ATM_Menu"

// Bank account with methods to deposit, withdraw, and check balance // // Contains 3 main variables; accountBalance, accountName, accountNum; with appropriate data types // // Initialize the accountName with parameter specified // accountBalance and accountNum are assigned random values // // Contains 3 member functions; menu, withdraw, deposit // // withdraw: Checks if balance able to withdraw and if so, decrements accountBalance by such. If not, prints appropriate error. // // deposit: Adds deposit amount to accountBalance, and displays new accountBalance // // menu: Contains following options; 1) Check balance, 2) Deposit amount, 3) Withdraw amount, 4) Exit

About

ATM/Bank menu with option methods to deposit, withdraw, and check balance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages