Question: In this activity you will create a program, in C, for a clothing store. The user will enter a file that has the item name,

In this activity you will create a program, in C, for a clothing store. The user will enter a file that has the item name, the department where the item is stocked, the item number, the original price, the sale price, and the quantity of the item. An example of the file:

Purple shirt Shirts 43820 42.5 31.98 300 Black pants Pants 38940 90.23 51.99 129 Red shirt Shirts 53620 45.5 38.98 274

With the use of this file, create a linked list with nodes with the structure shown below:

struct Cost{ float originalPrice; float retailPrice; int quantity; }; struct Data{ char item[45]; char department[25]; int itemNumber; struct Cost pricing; };

typedef struct Node{ struct Data clothing_item; struct Node *next; } Node;

Also, the list should be ordered by the increasing value of itemNumber, and the list should be ordered as the nodes are inserted into the list, not after the list is already done.

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!