Balance holds the account balance intrate holds the


You are a programmer for the Home Software Company. You have been assigned to develop a class that models the basic workings of a bank account. The class should have the following properties:

-Balance: Holds the account balance.

-IntRate: Holds the interest rate for the period.

-Interest: Hold the interest earned for the current period.

-Transactions: Holds the number of transactions for the current period.

The class should also have the following methods:

*MakeDeposit - Takes an argument, which is the amount of the deposit. This argument is added to the Balance property.

*Withdraw - Takes an argument that is the amount of the withdrawl. This value is subtracted from the Balance property, unless the withdrawl amount is greater than the balance. If this happens, an error is displayed.

*CalcInterest - This methosd calculates the amount of interest for the current period, stores this value in the Interest property, and adds it to the Balance property.

Demonstrate the class in an application that performs the following tasks:

-allows deposits to be made to the account

-allows withdrawls to be taken from the account.

-calculates interest for the period.

-Reports the current account balance at any time

-Reports the current number of transactions at any time.

Request for Solution File

Ask an Expert for Answer!!
Other Subject: Balance holds the account balance intrate holds the
Reference No:- TGS0639541

Expected delivery within 24 Hours