Question: Do question No.3 please. This is C++ program. Make sure it can run on Visual studio. Computer Science 385 Project No.6 (pointer implementation of stack,
Computer Science 385 Project No.6 (pointer implementation of stack, queue, and ordered linked list) Given three arrays: Int al7]-13, 6, 9, 1, 8, 5, 21 Int b[5] ( 10, 50, 70, 20, 40 ); Int c(6)-f 100, 500, 800, 300, 200, 900); 1. Stack Insert array a in a linked list to behave like a stack(FILO) i. Display the content of all the nodes ii. Compute the total of all the nodes ii. Determine how many nodes are in the linked list 2. Insert array b in a linked list to behave like a queue (FIFO) Queue 10 50 40 i. ii. Display the content of all the nodes Find the max and min data in the queue 3. Write a program to insert data in array c in an ordered linked list. OList 100200300 900 i. Display the content of all the nodes i. Compute and display the average of all EVEN numbers in the list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
