Create a bankloan class that derives from bankaccount

Assignment Help Basic Computer Science
Reference no: EM131395859

You have been developing a BankAccount class for Parkville Bank that contains several fields and functions, including overloaded operators. You have also created child classes derived from the BankAccount class: CheckingAccount, SavingsAccount, and CheckingWithInterest. Complete these tasks:

a. Create a BankLoan class that derives from BankAccount. The BankLoan class inherits the account number and balance (loan amount) from its parent, and also includes fields that hold the loan term (in months) and the annual interest rate charged. The BankLoan class also contains bit fields that store data about the type of loan-whether it is a mortgage, automobile loan, home improvement loan, or student loan. For every loan, only one of these bits can be on. Additional bit fields indicate whether the BankLoan customer also has a checking account, savings account, or interest-bearing checking account with the bank. None, some, or all of these bits indicate that the customer's account types can be on. Write a main()function that prompts the user for five BankLoan objects. When data entry is complete, display the five BankLoan values. Save the file as BankLoans.cpp.

b. Write a main()function that declares an array of 10 BankLoan objects. Write a recursive sort()function that places the BankLoan objects in ascending order based on account number. Save the file as AscendingLoanSort.cpp.

c. Write a main()function that declares an array of 10 BankLoan objects. Write a recursive sort()function that places the BankLoan objects in descending order based on loan amount. Save the file as DescendingLoanSort.cpp.

Reference no: EM131395859

Questions Cloud

Find an algorithm that uses a recursion in a bubble sort : Display the 100 numbers, then sort them using the recursive bubble sort method and display them again. Save the program as RecursiveBubbleSort.cpp.
Supply and demand equations : Assume that the market for sriracha sauce can be represented by the following supply and demand equations:
Enumerative definitions or operational definitions : Determine whether the following are demonstrative definitions, enumerative definitions, synonymous definitions or operational definitions.- "Rapier" means sword.
Describe three requirements elicitation difficulties : Describe three requirements elicitation difficulties or challenges from the examples below. Give an example of one of these challenges from your experience or otherwise.
Create a bankloan class that derives from bankaccount : Write a main()function that declares an array of 10 BankLoan objects. Write a recursive sort()function that places the BankLoan objects in descending order based on loan amount. Save the file as DescendingLoanSort.cpp.
Evaluate the specific preparation steps in the preparedness : According to the Department of Health and Human Services (2002), the nation's capacity to respond to bioterrorism depends largely on the ability of clinicians and public health officials to detect, manage, and effectively communicate in advance of..
Etymological definitions or operational definitions : Determine whether the following are demonstrative definitions, enumerative definitions, or definitions by subclass.- "Oak" means a tree that bears acorns.
What are the maximum amount of k and l : Draw the isocost line for a total cost per day of $15,000. (Base case) and Draw the isoquant curve when this firm is producing efficiently, assuming output is 100 units. What are the maximum amount of K and L possibly used to produce 100 units?
Advice silcraze city council of its liability : Advice Silcraze City Council of its liability in each of the following situations I.e with James, Ben and Mary who are all Members of the Gym - James uses the Bench Press and is injured as the equipment is broken.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Strategies unions use to organize versus the tactics

What is the difference between the strategies unions use to organize versus the tactics?

  Describe benchmarking

What is the purpose of having an international quality standard like ISO?

  Determine the number of gates that can be enclosed

TTL SSI come mostly in 14-pin packages. Two pins are reserved for power and the other 12 pins are used for input and output terminals.

  What percent of all twin births were preterm

Create an appropriate graph comparing the outcomes of these pregnancies by the level of medical care the mother received.

  Airfares between cities to create a weighted graph

Choose four cities you would like to visit. Consult the Internet and use one-way airfares between cities to create a weighted graph.

  What does the coefficient of fat mean in this model

Do you think this model would do a reasonably good job at predicting calories? Explain.

  How organizations communicate with prospective

In this assignment, you will locate examples of how the use of digital media was used to communicate information to achieve a specific goal of an organization or individual.

  Problem regarding the crows foot notation

Create and E-R diagram following the crows foot notation. Identify max and min cardinality. Resolve any many- to many relationshops.

  Estimate the maximum compaction attainable in the landfill

Estimate the maximum compaction attainable in the landfill

  Principles of information security

Assume you have converted an area of a general office space into a server room. Describe the factors you would consider for each of the following components.

  What is team cohesiveness

IT team need to be cohesive. What is team cohesiveness and why is it important?

  Unconstrained maximization problem

Consider the maximization problem of f(x; y) subject to the constraint g(x; y) = c. Assume that (x; y) is a global maximum. Then rf(x; y) = rg(x; y) where  is the lagrange multiplier.

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