Q2. Write a class Bank that has the following data members –Account Holder name (ah_name[]) –Account number (ac_number) •Must unique, system generates automatically, and must starting from 100 (Hints:...


Q2. Write a class Bank that has the following data members




–Account Holder name (ah_name[])


–Account number (ac_number)


•Must unique, system generates automatically, and must starting from 100 (Hints: Use another static variable and assign that variable to ac_number)


–Balance in the account (ac_balance)


•The class has the following member functions


–A constructor to initialize the data members


–Input() to takes name from the user


–Deposit(parameter) to deposits balance in the account


•Must accept parameter (The amount to deposit)


–Withdraw(parameter) to withdraws balance after checking


•Must accept parameter (The amount to withdraw)


–Display() to show the name, account number, and balance












Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here