Page 1 of 1

Please answer ASAP!! Write a C++ program to create a class account with name, account number and balance as data members

Posted: Sat May 14, 2022 3:30 pm
by answerhappygod
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;
}