Define a class to represent a bank account. include the following members.
Data members
a. Name of depositor
b. Account number
c. type of account(savings or deposit)
d. Balance amount in the account
write member functions to:
a. Assign initial values depending on the type of account(use constructor). Assume initial balance is $500 in the case of savings, $1000 in the case of current account.
b. Deposit an amount and update balance.
c. Withdraw an amount after checking the balance and update balance.If the balance is less than requested amount ask the user to input the withdraw amount again.
d. Display name and Balance.
Write a main program to achieve the above functionalities.
PLEASE HELP ME OUT, I AM JUST LEARNING CLASSES. NEED YOUR HELP DEFINITELY
this is what i have so far please just show me the rest because i got three questions to do for my assignment. so you helping me with this one i think i can manage the rest
It is policy here not to do your homework for you. We will help you with your code, but if you don't know how to write a function you need to go back to the start.