Question: Please write the c++ program based on the below instructions and meet all the requirements. Please also add comments for the codes. Thanks Below is

Please write the c++ program based on the below instructions and meet all the requirements. Please also add comments for the codes. Thanks

Please write the c++ program based on the below instructions and meetall the requirements. Please also add comments for the codes. Thanks Belowis product data file: A001 Apples 1 0.90 21 A002 Peaches 10.82 11 A004 Oranges 1 .98 31 A006 Avocados 0 1.54 27A008 Mangos 0 1.69 19 A009 Strawberries_Case 0 12.50 8 4261 Rice_1_LB_Bag0 0.49 107 ----------------------------- Enter below inputs to get the outputs below.

Below is product data file:

A001 Apples 1 0.90 21 A002 Peaches 1 0.82 11 A004 Oranges 1 .98 31 A006 Avocados 0 1.54 27 A008 Mangos 0 1.69 19 A009 Strawberries_Case 0 12.50 8 4261 Rice_1_LB_Bag 0 0.49 107 

-----------------------------

Enter below inputs to get the outputs below.

productData.txt 1 A001 0 -2 22 4260 20 4261 100 0 2 1 A008 10 A004 20 0 5 4 2 3 

--------------------

productData.txt 1 A001 0 -2 22 4260 20 4261 100 0 21 A008 10 A004 20 0 5 4 2 3 -------------------- HW5

HW5 (Graded out of 100) Write a program that reads grocery product records from a file, then store the information in an array of structures. Each grocery product record consists of the following 5 items: PLU code: Product Look Up Code. Unique for each product, stored as a string. Product Name, stored as a string Product Sales Type:0 = per unit, 1 = per pound Price per Pound or price per unit, Current Inventory Level (pounds or units). Below is an example of file content. In this example, there are four records, and each line c a record. A001 Apples 1 0.90 21 A002 Peaches 1 0.82 11 A006 Avocados 0 1.54 27 A008 Mangos 0 1.69 19 HW5 (Graded out of 100) Write a program that reads grocery product records from a file, then store the information in an array of structures. Each grocery product record consists of the following 5 items: PLU code: Product Look Up Code. Unique for each product, stored as a string. Product Name, stored as a string Product Sales Type:0 = per unit, 1 = per pound Price per Pound or price per unit, Current Inventory Level (pounds or units). Below is an example of file content. In this example, there are four records, and each line c a record. A001 Apples 1 0.90 21 A002 Peaches 1 0.82 11 A006 Avocados 0 1.54 27 A008 Mangos 0 1.69 19

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!