Question: c++; read a text file (its name is the static data) containing Product records (one Product per line), dynamically allocate Product objects and store the

c++;

read a text file (its name is the static data) containing Product records (one Product per line), dynamically allocate Product objects and store the objects in the array product_list. It should update product count member data accordingly to keep track of the number of inventory items in the system.

display all products in the file. Output must be properly formatted and aligned (using field width and floating data with 2 digits after decimal point).

Use two functions in same class'

example of the file:

id1;Name1;Quantity1;Price1

id2;Name2;Quantity2;Price2

id3;Name3;Quantity3;Price3

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!