Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions