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

  Counselors work with clients

Select two ethical, legal, and/or professional issues and reflect on how they might impact a counselor's court testimony and/or a counselor's work with clients.

  Interview with an expert on that issue to gather information

Select a topic of local interest. Assuming you were going to conduct an interview with an expert on that issue to gather information, list three individuals with whom you would strive to set up an interview.

  Moral reasoning and legal reasoning

Discuss in three to four sentences, in your own words, what is moral reasoning and legal reasoning. Describe in three to four sentences why lawyers use analogy to argue cases. Determine two theories proposed by moral philosophers.

  Technology has contributed to the evolution of music

Do you think technology has contributed to the evolution of music? Make answer as breif as possible.

  Prolonged exposure to ritalin early in life

In one study, rats were given prolonged exposure to Ritalin early in life. When the drug was withdrawn later in life, the rats were more likely to show symptoms of

  Involvement in the insurance process

What are the implications of simultaneous federal and state involvement in the insurance process?

  Continuum of managed care models

Explain how the continuum of managed care models helps to understand the level of control for access, quality, and costs for each type.

  International marketing involvement

McDonald's is at what stage of "international Marketing Involvement"? Support your choice by providing specific examples from the teams chosen articles.

  Outperform younger adults on a multitude of tasks

The synapses that were formed in early childhood begin to disappear as adults age, yet middle-aged adults tend to outperform younger adults on a multitude of tasks.

  Credentialing issues and member information

Credentialing issues. Member information (for providers). Pre-authorization forms. Coverage issues (for providers). Clinical practice guidelines

  How to play the role of an employment officer

researchers gave white college students two resumes in an experiment in which they were asked to play the role of an employment officer. The resumes were desighed to have equal qualification.

  Viruses and malicious code-from the e-activity

Viruses and Malicious Code" Please respond to the following: From the e-Activity, discuss what lessons can be learned from the attacks that were identified. Describe the steps both individuals and businesses can take to protect themselves from attack..

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