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

  Modify dijkstra''s algorithm

a. Explain how to modify Dijkstra's algorithm to produce a count of the number of different minimum paths from v to w. b. Explain how to modify Dijkstra's algorithm so that if there is more than one minimum path from v to w, a path with the fewest nu..

  Analyze the fundamental impact of it architecture

Analyze the fundamental impact of IT architecture or enterprise architecture on information management for your chosen company or industry. Determine if IT architecture impacts the effectiveness or efficiency of information management and vice ver..

  Find the corresponding z-score

If a 35week gestation period baby weighs 3125 grams and a 40 week gestation period baby weighs 3625 grams. Find the corresponding z-score.

  Define function that takes an argument in name of a csv file

Define a function that takes an argument in the name of a CSV file. This file has a single row containing letter grades (A-F) separated by comma (hence CSV file). Your function should print the distribution of grades.

  Integrity in database relationship window

What is the role of referential integrity in database relationship window?

  Proposals according to a standard format

Why would a customer give contractors instructions in the RFP to submit their proposals according to a standard format?

  Cpi rating for the processor

The L1 miss penalty is 40 cycles and the L2 miss penalty is 400 cycles. What would be the effective (i.e., average) CPI rating for the processor with these cache miss rates?

  Determine the size of the object

Also if the relationship between the change in the resistance and displacement is 0.05 Ω per mm, determine the size of the object.

  Which of the following file formats can store macros

Which of the following file formats can store macros

  Method of quantum mechanic modeling

A method of quantum mechanic modeling that relies on some empirical (experimentally derived) parameters to simplify the equations that describe a molecule. Many methods available in Chem 3D, we primarily use Extended Huckel.

  Economic point of view towing a car illegally

Explain why from an economic point of view towing a car illegally parked rather than just ticketing it provides a better incentive (for both rich and low income individuals) not to break the law.

  Can you improve the prediction using them

Can you improve the prediction using them?

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