Reference no: EM13300848
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.
A sydney tramway passenger was injured in a collision
: Question 2 Jonas was employed by Rapid Couriers as a courier. His father was employed at the same company and worked with his son. One day while making a delivery, the son lost sight of his father, who was directing him, and accidentally ran over him..
|
Determine the average power of the motor
: The rotor in a certain electric motor is a flat, rectangular coil with 85 turns of wire and dimensions 2.25 cm by 4.36 cm. The rotor rotates in a uniform magnetic field of 0.800 T. What is the average power of the motor
|
Preschool and primary-grade children
: Why is it important to use informal assessment methods with preschool and primary-grade children? What information can be learned? Based on this information, what types of intervention may be recommended?
|
What will the stock price be following the split
: Becker Financial recently declared a 2-for-1 stock split. Prior to the split, the stock sold for $85 per share. If the firm's total market value is unchanged by the split, what will the stock price be following the split?
|
Balance-transactions-interest and intrate
: 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.
|
Explain what is the density if carbon dioxide gas
: What is the density if carbon dioxide gas at -25.2° C and 98.0 kPa
|
What is its forecasted dividend payout ratio
: Portland Plastics Inc. has the following data. If it follows the residual dividend policy, what is its forecasted dividend payout ratio?
|
Determine the force of the engine
: A car with a mass of 800 kg moves up a hill inclined at an angle 15? to the horizontal with a constant acceleration of 2.5 ms?2. Find the force of the engine
|
What is the difference between the breakeven points
: What is the difference between the breakeven points for Machines A and B? (Hint: Find BEB - BEA)
|