Pre-lab: The prelab for Lab 6 is to create a flowchart algorithm for the program. Hand in the flowchart at the beginning of class.
Pair Programming: You may complete the lab either in pairs or individually. Please put the names of all team members in the comments in the class header.
In this lab, you must write a program to support the calculation of overdue charges for a library. The program reads input from a file that contains a customer name and a series of overdue items. The information for the items includes the type of the item (book, CD, or DVD), the title of the item, the replacement cost if the item must be replaced, and the number of days the item is overdue. The per-day overdue charges for the various types of items are as follows:
Jane Doe CD Counting Crows, Best of 15.99 5 DVD Harry Potter, V2 29.99 10 NEXT Roy Reader Book Gone 24.95 34 Book One Soul Lost 34.87 26 Book Forever Grateful 34.89 25 NEXT Sun Songster CD J.S. Bach Greatest Hits 12.99 10 CD Nirvana, In Heaven 31.88 23In the example above, the first customer's name is Jane Doe. Jane has two overdue items:
***** Customer Charges ***** Customer: Jane Doe has 2 items overdue The total overdue charge is: $12.5 with a total replacement cost of: $45.98 Customer: Roy Reader has 3 items overdue The total overdue charge is: $4.25 with a total replacement cost of: $94.71 Customer: Sun Songster has 2 items overdue The total overdue charge is: $16.5 with a total replacement cost of: $44.87You will need to use two loops where one loop is nested within another in order to complete this program. The outer loop should iterate until there is no more customer data. The inner loop is used to process the items for an individual customer.