Problem

You have been developing a BankAccount class for Parkville Bank that contains several fiel...

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.

Step-by-Step Solution

Request Professional Solution

Request Solution!

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.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT