Balance-transactions-interest and intrate

Assignment Help Other Subject
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.

Reference no: EM13300848

Questions Cloud

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)

Reviews

Write a Review

Other Subject Questions & Answers

  Calculate the critical radius

Assume for the solidification of nickel that nucleation is homogeneous, and the number of stable nuclei is nuclei per cubic meter. Calculate the critical radius and the number of stable nuclei that exist at the following degrees of supercooling: 200K..

  Quantum and incremental technological change

What is the relationship between quantum and incremental technological change and why are these types of change important to organizations?

  Describe the signs and symptoms of bleeding due to a cut

Describe the signs and symptoms of bleeding due to a cut or disruption in skin integrity that would alarmed the nurse that it is time to be serious and start intervening?

  Healthy individual-calcium from the diet

If a healthy individual were to consume too much calcium from the diet, which of the following is MOST likely to occur?

  Community health nurse develops community partnerships

Write down the two ways the community health nurse develops community partnerships? What are three merits to community partnerships?

  Americanization-conservatives-liberals and government

Are we doing enough to "Americanize" children and immigrants to America? Given that political socialization is the key to sustaining important political virtues and attitudes, should we be doing more to reinforce traditional American political val..

  Description of what information the effect size

a brief description of the real-world situation or problem you selected to address, the independent and dependent variables you would study, the statistical null and alternative hypotheses.

  Planning for community health improvement

What roles do the following terms play in planning for community health improvement?(behaviorist psychology, cognitive psychology, humanistic psychology, and social psychology)

  Differences in non-verbal communication between cultures

When looking at manners or etiquette as a form of non-verbal communication

  Should the assembly line be shut down

Filling Bottles A certain brand of apple juice is supposed to have 64 ounces of juice. Because the punishment for under filling bottles is severe, the target mean amount of juice is 64.05 ounces.

  Determine the speed of the stone

A 0.20 kg stone attached to a 0.8 m long string is rotated in a horizontal plane. The string makes an angle of 25° with the horizontal. Determine the speed of the stone.

  Functions of the family hanged

With industrialization the functions of the family hanged, and one of the major transformations was the

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd