Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Use C++ programming language to write code for binary search trees:

  1. Please create a binary search tree by inserting user entered values.
  2. Please find the depth or height of the node.
  3. Please delete a leaf node or a root node having any number of children.
  4. Please search an element.
  5. Please check whether the node is a main root node or not.
  6. Please check whether the node is a leaf node or not.
  7. Please print a binary search tree using pre-order traversal.

Write a python statement that assigns the sum of 10 and 14 to the variable total

Using three dimensional array, create a program that will enter table, row, and column together with the total number of Elements then display the Biggest number, Smallest number, and Second to the biggest number.



Sample input and output:



Input:


Enter number of Tables: 2


Enter number of Rows: 2


Enter number of Columns: 2



Enter 8 number of Elements


2


6


34


76


34


98


56


45



The biggest number among them is: 98


The smallest number among them is: 2


The second to the biggest number is: 76

How to wirite a c++ program to display student id and mark using function


c) Write a method DisplayDecision that takes as input two marks, one for WRAV101 and one

for WRSC111. Each of these marks is in the range 0 to 100. If the student can continue with

the second semester modules (use CanContinue above), an appropriate message and the

average mark for the two modules is displayed, otherwise the student is informed that he may

not continue.

d) Now, write the main program that continuously does the following for any number of students

until the lecturer requests to terminate the process:

 Ask for the WRAV101 and WRSC111 marks and display a message to indicate whether

the student can continue with second semester modules or not.


3. Get a number n from a user. Generate n random numbers and store in the list. Display the list. Compute summation and average of all numbers in the list then display the result on screen.

4. Given the same instruction to problem #2 and problem #3 above but we want to …

a. Display the list

b. Show the top 5 numbers in the list

c. Give the minimum number in the list,

d. Give the maximum number in the list.

5. We would like to have the same functionalities given in problem #3 and problem #4. Store all output data into a file named yourName-OUTPUT5.txt


Write a C++ program to solve each problem below.

1. Create an element structure and a list structure that can store a list of integer numbers. Create 4 functions to i) Create an empty list, ii) Add a number to begin of list, iii) Add a number to end of list, iv) Add a number to specific position in the list, and v) display list. Put all of these structures and functions into a header file named: yourName-SingleLinkList.h

Hint: Following are sample function prototypes:

List* createAnEmptyList( ) void addToBeginOfList(List *ls, int data)

void displayList(List *ls) void addToEndOfList(List *ls, int data)

void addSpecificPositionInList(List *ls, int data, int position)

2. Get a number n from a user. Include the user-defined header, yourName-SingleLinkList.h, created from problem #1. Build a singly linked list to store all numbers from 1 to n. Display all data in the list.





Get a number n from a user. Generate n random numbers and store in the list. Display the list. Compute summation and average of all numbers in the list then display the result on screen.


Get a number n from a user. Include the user-defined header, yourName-SingleLinkList.h, created from problem #1. Build a singly linked list to store all numbers from 1 to n. Display all data in the list.


Create an element structure and a list structure that can store a list of integer numbers. Create 4 functions to i) Create an empty list, ii) Add a number to begin of list, iii) Add a number to end of list, iv) Add a number to specific position in the list, and v) display list. Put all of these structures and functions into a header file named: yourName-SingleLinkList.h

Hint: Following are sample function prototypes:

List* createAnEmptyList( ) void addToBeginOfList(List *ls, int data)

void displayList(List *ls) void addToEndOfList(List *ls, int data)

void addSpecificPositionInList(List *ls, int data, int position)


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS