Write the definitions for the classes described

Assignment Help Programming Languages
Reference no: EM131734306

Assignment: Financial Accounts

Banks offer various types of accounts, such as savings, checking, certificate of deposits, and money market, to attract customers as well as meet their specific needs. Two of the most commonly used accounts are savings and checking. Each of these accounts has various options. For example, you may have a savings account that requires no minimum balance but has a lower interest rate. Similarly, you may have a checking account that limits the number of checks you may write. Another type of account that is used to save money for the long term is certificate of deposit (CD).

In this programming exercise, you will use abstract classes to design classes to manipulate various types of accounts. An abstract class is a class that may not be instantiated, and require subclasses to provide implementations for its methods. For simplicity, assume that the bank offers three types of accounts: savings, checking, and certificate of deposit, as described next.

Savings accounts: Suppose that the bank offers two types of savings accounts: one that has no minimum balance and a lower interest rate and another that requires a minimum balance and has a higher interest rate.

Checking accounts: Suppose that the bank offers three types of checking accounts: one with a monthly service charge, limited check writing, no minimum balance, and no interest; another with no monthly service charge, a minimum balance requirement, unlimited check writing and lower interest; and a third with no monthly service charge, a higher minimum requirement, a higher interest rate, and unlimited check writing.

Certificate of deposit (CD): In an account of this type, money is left for some time, and these accounts draw higher interest rates than savings or checking accounts. Supposed that you purchase a CD for six months. Then we say that the CD will mature in six months. The penalty for early withdrawal is stiff.

2419_Inheritance-Hierarchy.jpg

The figure above show the inheritance hierarchy of these bank accounts. Note that bankAccount and

checkingAccount are abstract.

bankAccount: Every bank account has an accouunt number, the name of the holder, and a balance. Therefore, instance such as name, accountNumber, and balance should be declared in the abstract class bankAccount. Some operations common to all types of accounts are retrieve account name, number, and balance; make deposits, withdraw money, and create monthly statements. So include fuunctions to implement these operations. Some of these functions will be pure virtual.

checkingAccount: A checking account is a bank account. Therefore, it inherits all the properties of a bank account. Because one of the objectives of a checking account is to be able to write checks, include the pure virtual function writeCheck to write a check.

serviceChargeChecking: A service charge checking account is a checking account. Therefore, it inherits all the properties of a checking account. For simplicity, assume that this type of account does not pay any interest, allows the account holder to write a limited number of checks each month, and does not require any minimum balance. Include appropriate named constants, instance variables, and functions in this class.

noServiceChargeChecking: A checking account with no monthly service charge is a checking account. Therefore, it inherits all the properties of a checking account.

Furthermore, this type of account pays interest, allows the account holder to write checks, and reqiures a minimum balance.

highInterestChecking: A checking account with high interest is a checking account with no monthly service charge. Therefore, it inherits all the properties of a no service charge checking account. Furthermore, this type of account pays high interest and requires a higher minimum balance than the no service charge checking account

savingsAccount: A savings account is a bank account. Therefore, it inherits all the properties of a bank account. Furthermore, a savings account also pays interest.

highInterestSavings: A high-interest savings account is a savings account. Therefore, it inherits all the properties of a savings account. It also requires a minimum balance.

certificateOfDeposit: A certificate of deposit account is a bank account. Therefore, it inherits all the properties of a bank account. In addition, it has instance variables to store the number of CD maturity months, interest rate, and the current CD month.

Write the definitions for the classes described above and a program to test your classes.

Create a typescript output (using the command script) and submit a zipped tar package file containing all relevant source files to canvas.

Reference no: EM131734306

Questions Cloud

What is the value of the property : Consider a property with expected future net cash flows of $25,000 per year for the next five years (starting one year from now).
What is the variable cost per unit assumed in the analysis : The chairperson of the cookbook development committee estimated, What is the variable cost per unit assumed in the Garden Club's analysis
Means the quantity supplied equals quantity demanded : Equilibrium means the quantity supplied equals quantity demanded. What else does equilibrium mean?
List and explain the fundamental structure : Provide a detailed report with information explaining the following in relation to reflexology: history, philosophies and beliefs of reflexology
Write the definitions for the classes described : Write the definitions for the classes described above and a program to test your classes. Create a typescript output (using the command script).
Products by demographics summary report : Using the guidelines presented, design the “Products by Demographics Summary Report.”
Compute and label each type of depreciation expense : Using the attached Excel File, compute and label each type of depreciation expense under following independent methods
Expound the concepts of market equilibrium : Expound the concepts of market equilibrium and the effects of government intervention.
What types of knowledge are appropriate for diplopedia : What key issues will need to be addressed for Diplopedia to be more widely used by diplomatic personnel

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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