1. Create a BankTransaction class.
2. Create following static data members:
Balance to show balance.
New Balance to get New balance from the user.
Adjustment in order to do the adjustment in balance.
Annual Interest Rate is used for the calculation of the interest.
Interest data member to show the interest amount.
3. Create constructor which display message when object is created.
4. Create destructor which display message when an object is destroyed.
5. Bank Transaction class have following public member functions:
Deposit () to despite amount in the account.
Withdrawal () to withdraw the amount from the bank.
Balance () function for displaying the current balance.
InterestRate () to set the interest rate. You must get interest
rate from the user.
AnnualInterest () is used to calculate the interest. The interest
calculated should be deducted from the balance and the new balance
after the deduction should be shown to the user.
6. Now in the main; display a menu.
1: Deposit
2: Withdraw
3: Get Balance
4: Set annual interest rate
5: Calculate interest
Perform appropriate function when users select the option. If option is wrong then display the appropriate message. You should also give option to the user if he/she wants to perform more functions.
It amazes me how many people out there are enrolled in an introductory C++ course that come to this site and push their homework assignments on the forum and just ask for the code. If you cannot complete this assignment, quit programming and become a landscaping technician. Otherwise, post the code you have and we'll work out the bugs with you as you LEARN!
Problem Statement:
1. No specific question has been found
2. Posting the whole assignment request without trying something won't give good results
3. Many people wouldn't even read it to the end
Hint: read http://www.cplusplus.com/forum/articles/1295/ , try solving that by yourself, if you get problems paste only the part of code which isn't working and phrase a proper question
i have its code but that was not working and i thought to post it at here but i will not now.
because this website is not fo me.
i am sorry for posting my problem here.thanks for your suggestions