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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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