Please answer ASAP!!
Write a C++ program to create a class account
with name, account number and balance as data members. You should
have member functions, to get data from user, to calculate interest
and add it to the balance, if years and interest rate is given
(Make interest rate as a static data member with value 10%) , to
withdraw if the amount to be withdrawn is given as input, to
display the balance.
input
xyz (name)
123 (accountnumber)
100 (balance)
2 (years)
50 (withdrawal amount)
output
70 (balance)
USE:
int main()
{
account abc;
abc.getData();
abc.interest();
abc.withdraw();
abc.display();
return 0;
}
Please answer ASAP!! Write a C++ program to create a class account with name, account number and balance as data members
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Please answer ASAP!! Write a C++ program to create a class account with name, account number and balance as data members
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!