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

  Justify the statement that the sample mean may be calculated

Justify the statement that the sample mean of Eq. (12.40) may be calculated from the iterative formula of Eq. (12.42).

  Poductive discussion on your findings related to the human

At the next meeting, you and the team had a very productive discussion on your findings related to the human resource planning and related team management processes. Everyone feels that it is time to present your findings to Sam and Gloria.

  Discuss what is and how the auto discovery feature of simple

Discuss what is and how the auto-discovery feature of Simple Network Management Protocol (SNMP) operates? Give a real-world scenario where this technology would be an appropriate fit (or not)?

  Determining the mobile communication technique

In a congested city which of the following mobile communication technique would you use?

  The lisp function length counts

The Lisp function LENGTH counts the number of elements in the top level of a list. Write a function ALL-LENGTH of one argument that counts the number of atoms that occur in a list at all levels.  Thus, the following lists will have the following A..

  Briefly define shortest-process-next scheduling

Briefly define shortest-remaining-time scheduling. 9.10 Briefly define highest-response-ratio-next scheduling.

  How do we detect which mouse button has been depressed

How do we detect which mouse button has been depressed? Which key on the keyboard has been depressed? The location of the mouse when a mouse button is depressed?

  What types of networks are used along that route

Trace the route to another machine off campus. For example, if you have a friend you send email to, try tracing that route.

  What is the role of the project manager

What other additional information would you like to share with the class?

  The dimboola tiddlywinks association

The Dimboola Tiddlywinks Association (DTA) has been given the job of managing the draw and results for the 32 regional tiddlywink teams. Each team has a name and a home town. Each match is a competition between two teams and is held at the locati..

  Propose an smtp option for remote client authentication

Explain why email servers often no longer permit such relaying from arbitrary clients.

  Create a 3-d clustered column chart of the divisions

Create Line sparklines in column F in the Earnings sheet to show the trend by quarter for each division. Show the high point for each sparkline. Apply the Sparkline Style Colorful #5 style. Create a 3-D Clustered Column chart of the divisions and t..

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