Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need Answer ASAP C++ Question 3 [10]. Consider the struct 'House' as defined in the Question 1 above. Implement the queue with circular linked list

image text in transcribed
image text in transcribed
need Answer ASAP
C++
Question 3 [10]. Consider the struct 'House' as defined in the Question 1 above. Implement the queue with circular linked list whose each node has data component an instance of the struct House. Write and implement the following functions to: (1) enqueue five elements to the queue: (Kabeer, 25), (John, 65) and (Paul, 43), (Kaur, 93), (Patel, 37) (you must hardcode these elements); (ii) print the queue. (iii) dequeue one element; (iv) print the queue. Question 1 [10]. Write a struct 'House that has two member variables: (string) first name of the owner, (int) house number. Implement the binary search tree whose each node has data component an instance of the struct House. Comparison of the nodes must be made with respect to first name. Write the following functions to: 1) insert nodes in a tree; (ii) print the tree in post order fashion; (iii) find the minimum element of the tree; (iv) remove a node from the tree; Implement the following: (i) insert five elements to the tree: (Kabeer, 25), (John, 65) and (Paul, 43), (Kaur, 93), (Patel, 37) (you must hardcode these elements); (ii) print the tree post order fashion; (iii) remove an element from the tree (Paul, 43) (you must hardcode this elements); (iv) find the minimum element of the tree; (v) print the tree in post order fashion

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

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

How does copyright benefit us/others? (critical thinking)

Answered: 1 week ago