Problem Statement:

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.

Salem commented: Good for you, now go read the forum rules and make an attempt at your OWN homework, and don't expect someone else to spoon-feed you -6

Recommended Answers

All 5 Replies

Wow, you didn't even take the time to say "I have this assignment, can you help me?" - you just copy and pasted directly!!

is that the ans of my question?

commented: No, you don't even deserved to be heared -2

is that the ans of my question?

Yes, turn that in, quick, before it gets deleted!

commented: ROFL - There's more than a passing chance they might :) +33

>>is that the ans of my question?
Let me make you one thing clear. This is what Eric. S Raymond said on his article "How to ask question the smart way"

Never assume you are entitled to an answer. You are not; you aren't, after all, paying for the service. You will earn an answer, if you earn it, by asking a substantial, interesting, and thought-provoking question — one that implicitly contributes to the experience of the community rather than merely passively demanding knowledge from others.

Please read that guide before posting any non-sense.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.