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 CheckingAccountWithInterest. Complete these tasks:
a. Create a function template named produceReport()that accepts three arguments as follows:
» a string value for the report title
» a parameterized array that contains the elements in the report
» an integer indicating the number of table rows
The produceReport()function displays the table heading and each element of the array separated by a dashed line. The dashed line varies in size based on the size of the array element passed in as the parameterized value. For example, because integers are four bytes, the integers in the report are separated by a four-dash line. The report ends with an “End of report” message.
b. Write a main()function in which, in turn, you pass an array of at least five of each of the following types to the produceReport()function:
» CheckingAccountWithInterest
» CheckingAccount
» SavingsAccount
» integer
» string
Save the file as ProduceReport.cpp.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.