[Solved]Tasks Rubric Activity Define Linked List Node Include Char Produce 20 Char Type 20 Char So Q37174557
![Tasks and Rubric Activity Define a linked list node to include char produce[20] char type[20]; char soldBy[20 float price; in](https://media.cheggcdn.com/media%2Fd1e%2Fd1e28811-b517-43ac-ac60-6e4e50421543%2Fimage.png)

Tasks and Rubric Activity Define a linked list node to include char produce[20] char type[20]; char soldBy[20 float price; int quantity InStock; struct produceltem next NO GLOBAL HEAD, TOP, FRONT, or REAR ALLOWED! Provide the user a menu of the following options: 1. Stock Produce Department /I call function to read in the data file 2. Display Produce Inventory Stack // call function to display the data in the format shown in figure 3. Display Produce InventoryQueue // call function to display the data in the format shown in figure 4. Pop off 10 elements of stack writing each element to output file Assignment8Output.txt // call function to pop off 10 elements and write each elem ent to the output file 5. Dequeue 15 elements of queue writing the remaining elements of the queue to output file Assignment8Output.txt // call function to dequeue 15 elements from the queue and write the remaining queued elements to the output file 6. Exit Program // ex it the program main() Use a conditional statement to evaluate the user’s selection See Figure 1 for the output display Function to read the data file Read in the contents of data file “Assignment8Input.txt” into the as elements of a stack andnode data structure and generate a stack and queue Function to display the stack Traverse the stack and display the data of each node formatted as Function to display the queue Traverse the queue and display the data of each node formatted Function to pop and output to Pop off 10 elements of the stack and write each elem ent ueue Test Case 1 Perform Test Case 1, results in expected outcome shown in Figure2 Perform Test Case 2, results in expected outcome as shown in Figure 3 Perform Test Case 3, results in expected outcome Test Case 2 Test Case 3 queue Perform Test Case 1, results in expected outcome Traverse the stack and disp lay the data of each node form atted as shown in Figure 2 Perform Test Case 2, results in expected outcome Traverse the queue and display the data of each node form atted Test Case 1 Function to display the stack Test Case 2 Function to display the queue as shown in Figure 3 Perform Test Case 3, results in expected outcome Test Case 3 Function to pop and output to Pop off 10 elements of the stack and write each element to the file Test Case 4 Function to dequeue and Dequeue 15 elements from the queue and write the remaining output output file Perform Test Case 4, results in expected outcome queued elements to the output file Perform Test Case 5, results in expected outcome Write the appropriate code to ex it the program Exit the program Test Case 6 Compile Run Comments ed outcome Source compiles with no errors Source runs with no errors Source includes comments Perform the following test cases Test Cases Test case 1 Test case 2 Action Select option 1 Expected outcome Data file Assignm ent8Input.txt is read in string tokenized, generated a stack and queue Select option 2 Display the elements of the stack, see Figure Page ) of 5 Test Case 6 Compile Perform Test Case 6,results in expected outcome Source compiles with no errors Source runs with no errors Source includes comments un Comments Perform the following test cases Test Cases Test case 1 Test case 2 Test case 3 Test case 4 Test case 5 Test case 6 Action Expected outcome Data file Assignment8Input.txt isread in, string tokenized, generated a stack and queue Display the elements of the stack, see Figure Select option 1 Select option 2 Select option 3 Select option 4 Select option 5 Select option 6 Display the elements of the stack, see Figure Data file Assignment8Output.txt is written, see Figure 4 Data file Assignmnet8Output.txt is written, see Figure 5 Program exits and quits CAUsers List Operations . Stock Produce Departnent Display Produce InventoryStack . Display Produce Inventor . Pop 18 Elenents OfF Stack and Out put . Dequeue 15 Elenents off Queue and Output 6. Exit Progran Enter your choice- Figure 1 Application Start Show transcribed image text Tasks and Rubric Activity Define a linked list node to include char produce[20] char type[20]; char soldBy[20 float price; int quantity InStock; struct produceltem next NO GLOBAL HEAD, TOP, FRONT, or REAR ALLOWED! Provide the user a menu of the following options: 1. Stock Produce Department /I call function to read in the data file 2. Display Produce Inventory Stack // call function to display the data in the format shown in figure 3. Display Produce InventoryQueue // call function to display the data in the format shown in figure 4. Pop off 10 elements of stack writing each element to output file Assignment8Output.txt // call function to pop off 10 elements and write each elem ent to the output file 5. Dequeue 15 elements of queue writing the remaining elements of the queue to output file Assignment8Output.txt // call function to dequeue 15 elements from the queue and write the remaining queued elements to the output file 6. Exit Program // ex it the program main() Use a conditional statement to evaluate the user’s selection See Figure 1 for the output display Function to read the data file Read in the contents of data file “Assignment8Input.txt” into the as elements of a stack andnode data structure and generate a stack and queue Function to display the stack Traverse the stack and display the data of each node formatted as Function to display the queue Traverse the queue and display the data of each node formatted Function to pop and output to Pop off 10 elements of the stack and write each elem ent ueue Test Case 1 Perform Test Case 1, results in expected outcome shown in Figure2 Perform Test Case 2, results in expected outcome as shown in Figure 3 Perform Test Case 3, results in expected outcome Test Case 2 Test Case 3
queue Perform Test Case 1, results in expected outcome Traverse the stack and disp lay the data of each node form atted as shown in Figure 2 Perform Test Case 2, results in expected outcome Traverse the queue and display the data of each node form atted Test Case 1 Function to display the stack Test Case 2 Function to display the queue as shown in Figure 3 Perform Test Case 3, results in expected outcome Test Case 3 Function to pop and output to Pop off 10 elements of the stack and write each element to the file Test Case 4 Function to dequeue and Dequeue 15 elements from the queue and write the remaining output output file Perform Test Case 4, results in expected outcome queued elements to the output file Perform Test Case 5, results in expected outcome Write the appropriate code to ex it the program Exit the program Test Case 6 Compile Run Comments ed outcome Source compiles with no errors Source runs with no errors Source includes comments Perform the following test cases Test Cases Test case 1 Test case 2 Action Select option 1 Expected outcome Data file Assignm ent8Input.txt is read in string tokenized, generated a stack and queue Select option 2 Display the elements of the stack, see Figure
Page ) of 5 Test Case 6 Compile Perform Test Case 6,results in expected outcome Source compiles with no errors Source runs with no errors Source includes comments un Comments Perform the following test cases Test Cases Test case 1 Test case 2 Test case 3 Test case 4 Test case 5 Test case 6 Action Expected outcome Data file Assignment8Input.txt isread in, string tokenized, generated a stack and queue Display the elements of the stack, see Figure Select option 1 Select option 2 Select option 3 Select option 4 Select option 5 Select option 6 Display the elements of the stack, see Figure Data file Assignment8Output.txt is written, see Figure 4 Data file Assignmnet8Output.txt is written, see Figure 5 Program exits and quits CAUsers List Operations . Stock Produce Departnent Display Produce InventoryStack . Display Produce Inventor . Pop 18 Elenents OfF Stack and Out put . Dequeue 15 Elenents off Queue and Output 6. Exit Progran Enter your choice- Figure 1 Application Start
Expert Answer
Answer to Tasks and Rubric Activity Define a linked list node to include char produce[20] char type[20]; char soldBy[20 float pric… . . .
OR

