Write a class Account with following parameters: accountTitle (string), accountHolder (string), accountNumber(string), amount(double). Write public getters and setters for each class variable. You are also required to write following functions
1. withdrawAmount The user should be able to withdraw amount from his/her account. The withdrawAmount member function.
2. deductTax At every withdrawal, The program should be able to deduct tax (2.5%) from user amount.
Write main() function where program should provide following options to the user:
a. create account
b. set account title
c. set account holder name
d. set account number
e. set amount
f. get account title
g. get account holder name
h. get account number
i. get amount
j. withdraw amount
k. deduct taxes
Comments
Leave a comment