Write a mainfunction that declares an array of 10 bankloan


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.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a mainfunction that declares an array of 10 bankloan
Reference No:- TGS02192503

Expected delivery within 24 Hours