Completed

Modify an existing project on [login to view URL]

Very simple project. Need the following binary search program "[url removed, login to view]" modified with the following two parts:

Part 1:

1. Modify the program so that every node has an additional third child, called mid. Modify the insert program, so that the value is stored in the middle child if it has the same value as its parent.

2. Insert the following numbers 6, 12, 18, 24, 8, 16, 24, 5, 10, 15, 7, 14, 21, 4 in this ternary tree. Ask the user to search for a number. If the number is there, return "yes", otherwise return "no".

Part 2:

[url removed, login to view] an excel spreadsheet, form a chart with 3 columns which include the name, director and the date (year) of 25 of your most favorite movies. (Use IMDB!). 


[url removed, login to view], our goal is to form a ternary search tree for the movies you picked, by modifying the algorithm you wrote in Assignment 1 as follows:

(a)  Create a data structure (using struct) called movie, which has 6 members: a string for the name of the movie, another string for the director, an integer value for the year, and 3 pointers: left, mid, right. 


(b)  Modify the CreateNode and Insert functions; instead of mydata (int), you should have 3 inputs: movie name (string), movie director (string), and year (integer). 


(c)  Modify the search function, by replacing data with the year of the movie (namely, search for the year!). 


(d)  Inside the main function, add the 20 movies you picked to your tree, using the insert function. 


(e)  Your program should do this: Ask the user to search for a year. If there is a movie shot that year, it should return a message that gives the name and the director of the movie. If there isn't a movie shot in that year, the program should return "not found".

Kemahiran: Pengaturcaraan C++

Lihat lagi: yes in binary, use of tree data structure, use of pointers in data structure, use of data structure in programming, use of binary search tree, tree structure programming, tree structure algorithm, tree program in data structure, tree of data structure, tree insert, tree in data structure using c, tree in data structure and algorithm, tree in data structure, tree in algorithm, tree data structure in c, tree data structure c, tree binary search, the binary search algorithm, struct in cpp, struct c programming

Tentang Majikan:
( 3 ulasan ) NY, United States

ID Projek: #10117040

Dianugerahkan kepada:

xeathprynx

Hello, i am expert in java/c/c++ and i can deliver any task in least time and least payments. The code will be well commented and well formatted for better understanding. I believe in long term relations so first che Lagi

$50 USD dalam sehari
(18 Ulasan)
3.8

5 pekerja bebas membida secara purata $43 untuk pekerjaan ini

giampaolofolena

I am an expert of c/c++ language. I will do the assignment and try to clarify all your possible doubts about the code.

$50 USD dalam 3 hari
(1 Ulasan)
0.8
jaynanavati

Hi...I've gone through your requirements...I can surely and quickly do them. I've also completed a few assignments here. A Sun Certified Java Programmer here. I've been teaching Data Structures/C/C++/Java in PG/UG Lagi

$50 USD dalam sehari
(0 Ulasan)
0.0
GaborP

Hello! Delivery: - [login to view URL] - [login to view URL] + xls file with movie data My qualification for the job: - I'm a C++ programmer in my full time job for several years. Questions to clarify: part1: when a number is Lagi

$30 USD dalam 2 hari
(0 Ulasan)
0.0
cvora22

Experienced C/C++/Java developer. Multi threaded application, Socket Programming. SDLC. Agile development. XML. Web.

$35 USD dalam 3 hari
(0 Ulasan)
0.0