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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post 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;
}
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply