Menu

[Solved]Baisic C Define Linked List Node Include Char Produce 20 Char Type 20 Char Soldby 20 Float Q37055827

in baisic C:

-Define a linked list node to include:

char produce[20];

char type[20];

char soldBy[20];

float price;

int quantityInStock;

struct produceItem *next;

– Provide the user a menu of the following options:

1. Stock Produce Department

// call function to read in the data file

2. Display Produce Inventory ~ Stack

// call function to display the data in the format shown infigure

3. Display Produce Inventory ~ Queue

// call function to display the data in the format shown infigure

4. Pop off 10 elements of stack writing each element to outputfile Assignment8Output.txt

// call function to pop off 10 elements and write each elementto the output file

5. Dequeue 15 elements of queue writing the remaining elementsof the queue to output file Assignment8Output.txt

// call function to dequeue 15 elements from the queue and writethe remaining queued elements to the output file

6. Exit Program

// exit the program

– Use a conditional statement to evaluate the user’sselection

Expert Answer


Answer to in baisic C: -Define a linked list node to include: char produce[20]; char type[20]; char soldBy[20]; float price; int q… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *