Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

Do question No.3 please. This is C++ program. Make sure it can run on Visual studio. image text in transcribed
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

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

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions