Saved Bookmarks
| 1. |
WAP to declare a class ‘Account’ having data members as Account no. and balance .Accept this data for 10 accounts and give interest of 10% where balance is equal or greater than 5000 and display them. |
|
Answer» Answer: Define a class to represent a bank account which includes following members : Data members – 1)Name 2)Account number 3)TYPE of account 4)Bal. amt Member functions – a.To assign initial VALUE b.To deposit an account c.To withdraw an account d.To display name, account number & BALANCE. |
|