write a C++ program that processes records of items purchased. Assume the items are being purchased by one person. Create a class definition for item records with the following fields: id, name, quantity, regular price, price paid, and total for item. Dynamically allocate an array and read records from a file. You will read all fields except the price paid and total. See below. Calculate price paid for items. Customers get a 10% discount off regular price of item if they purchase 10 or more of the item. Calculate the total (quantity times price paid) for each record. Sort the records in the array by the item’s name using the generic sort function in the file sort.h. Write the updated records out to a new file (orderout.txt). Include all field data. Use the following test data (5 Records in the file order.txt ) to test your program:50-8053-7442-6 Problem Solving with C++1 45.507751158146Looney Tunes Diskettes12 8.5088869809780HP Laser Printer Paper3 10.992429412454No. 2 Pencil24 0.104895469286Note Pad5 0.89