Write the definitions of the classes described in exercise

Assignment Help Programming Languages
Reference no: EM131321695

Assignment

Be sure to follow the Coding Standard Guidelines. You must properly indent and comment your code.

Indent code and insert comments to document your program. Program must be implemented and run as instructed.

Source file and executable are placed in a folder.

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). Use abstract classes and pure virtual functions to design classes to manipulate various types of accounts. For simplicity, assume that the bank offers three types of accounts: savings, checking and certificate of deposit.

Assume

SavingsAccount: 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. Assume an Interest Rate of 0.03

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. Suppose 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.

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.
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 Assume an Interest Rate of 0.05, Minimum Balance = $2500

bankAccount: Every bank account has an account number, the name of the owner, and a balance. Therefore, instance variables 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 owner's name, account number, and account balance; make deposits; withdraw money; and create monthly statements. So include functions to implement these operations. Some of the these functions will be pure virtual.

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 requires a minimum balance. Assume an Interest Rate = 0.02, Minimum of Balance = $1000

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. -Assume account service charge = $10, Maximum number of checks = 5, Service Charge if customer exceeds the maximum number of checks = $5.

NoServicechargeChecking: 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 interest, allows the account holder to write checks, and requires a minimum balance. Assume an interest rate = 0.02, Minimum Balance = $1000

HighInterestChecking: A checking account with high interst 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 higher interest and requires a higher minimum balance than the no service charge checking account. Assume an interest rate = 0.05, Minimum Balance = $5000

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. Assume an interest rate = 0.05, Initial Number of Maturity Months = 6

Write the definitions of the classes described in this programming exercise and a program to test your classes.

Reference no: EM131321695

Questions Cloud

Design a database in preparation for the program : Design a database in preparation for the program next week. You may wish to review database material from previous coursework. Add a feature in the program to read from and write to the database designed in the previous week.
Change in the length : A copper wire 5m long is cooled from 40C to -9C. How much change in the length does it experience?
Differences between basic research and applied research : Describe the characteristics of descriptive, correlational, and experimental research designs, and discuss the advantages and disadvantages of each.
Change in the length of the pipe : The plumbing in an old house uses lead pipes (which are now considered hazardous). Hot water is run through a section of pipe, increasing its temperature from 19.4°C to 36.8°C. If the pipe is initially 3.96 m in length, what is the change in the l..
Write the definitions of the classes described in exercise : Write the definitions of the classes described in this programming exercise and a program to test your classes. Indent code and insert comments to document your program. Program must be implemented and run as instructed.
What variables are measured in the research : Determine whether the project is a descriptive, a correlational, or an experimental research design.- What variables are measured in the research?
Speed of sound in air : As you run toward a stationary trumpet player at 5.00 m/s, you hear a tone at a frequency of 530 Hz. Find the frequency you would hear if you stood still. Take 342 m/s for the speed of sound in air.
Where is the best area in the network to install a honeypot : Why are honeypots important to a network? Discuss the disadvantages of having a honeypot in the network.
Magnitude of the temperature change : What is the magnitude of the temperature change |ΔT|= 12.6 K in degrees Fahrenheit?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a program use at least one user-defined function

program must use at least one user-defined function (main does not count). You must define the function and actually use it in your program.

  Which functions perform assignment score to private member

Consider this class definition: class quiz { public: quiz( ); int f( ); int g( ) const; private: double score; }; Which functions can carry out an assignment score=1.0; to the private member variable score?

  Generate code for the given three address statements

Generate code for the following three-address statements again assuming stack allocation and assuming a and b are arrays whose elements are 4-byte values.

  Program in perl that have two subroutines add() and multiply

Write a program in PERL that have two subroutines add() and multiply() that will add or multiply its arguments and print the result to screen.

  Design architecture of system to accept natural language

Using the generic model of a language processing system presented here, design the architecture of a system that accepts natural language commands and translates.

  Write program that merges two files

The first programming project involves writing a program that merges two files that contain polynomials. To merge two files, the input files must be in sorted order.

  Write a program with a windows-style interface

write a program with a Windows-style interface to carry out the task. A form contains two text boxes and one large label between them with no preset caption. When the first text box receives the focus, the label reads "Enter your full name.

  Build web applications using ajax technologies

Develop a better understanding of building web applications using Ajax technologies and ShopOnline allows sellers to list items for selling and buyers to bid for the items based on the English Auction strategy, which is a popular strategy used in m..

  Why the teller application can call the withdraw methods

Explain why the Teller application can call the withdraw and deposit methods using a SavingsAccount object reference, even though we did not define these methods.

  Write unix shell script to check file in current directory

Write Unix shell script (one program) called Project1_lastname (your lastname). This script will do the following tasks: Using "if" statement checks for a file called "student.txt" in current directory.

  Write pattern matching statement using a regular expression

Write a pattern matching statement using a regular expression that returns the GI number from the header of a sequence in a FASTA file - Write a Perl program that produces the following output when searching for the word RNA in the paragraph

  Design and code a program including the given classes

Design and code a program including the following classes, as well as a client class to test all the methods coded: A Passenger class, encapsulating a passenger.

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