Write program that reads list of names and telephone numbers

Assignment Help Data Structure & Algorithms
Reference no: EM131162403

Write a program that reads a list of names and telephone numbers from a text file and inserts them into an AVL tree. Once the tree has been built, present the user with a menu that allows him or her to search the list for a specified name, insert a new name, delete an existing name, or print the entire phone list. At the end of the job, write the data in the list back to the file. Test your program with at least 10 names.

Reference no: EM131162403

Questions Cloud

Recently changed the selling price of one of its products : Clulow Corporation recently changed the selling price of one of its products. Data concerning sales for comparable periods before and after the price change are presented below.
Component of magnetic field at the center of square : A). Calculate the y component of the magnetic field at the center of the square. B). Calculate the x-component of the force on a 1.0-cm long piece of the lower right-hand wire, due to the other three wires.
What is the money multiplier and how does it work : What is the money multiplier and how does it work? If the reserve ratio is 20%, what is the money multiplier? Does the Fed really "set" the federal funds rate? Is that a tool of monetary policy?
State the research hypothesis in your own words : What were some variables the researchers controlled in their study? Why was this necessary? What evidence do the researchers offer as a test of their hypothesis? Is this evidence empirical (observable)? Is it valid?
Write program that reads list of names and telephone numbers : Write a program that reads a list of names and telephone numbers from a text file and inserts them into an AVL tree.
Component of magnetic field at the center of square : The four wires that lie at the corners of a square of side a= 4.00 cm are carrying equal currents i= 2.30 A into (+) or out of (-) the page, as shown in the picture.
How has scientific research influenced gender stereotypes : How has scientific research influenced gender stereotypes of the opposite gender? Which stereotypes of the opposite gender cause the most damage in a child's perception of his or her future abilities and why?
Write a print function that can be called to print the tree : Write a print function that can be called to print the tree. The printed output should contain the node level number in parentheses, its data, and its balance factor.
Property of a wave during refraction : What is refraction? What happens to each property of a wave during refraction? Use a specific example in your explanation.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Advantage of fast running time of insertion sort

Running time of quicksort can be enhanced in practice by taking advantage of fast running time of insertion sort when its input is "nearly" sorted.

  Write a program to test your implementation of stack class

Write a program to test your implementation of this Stack class. You also need to provide at least 4 test cases for this program to test all the methods including constructor, push, pop, peek and size, and to test dynamic resizing

  Create an array in vl with up to hundrad elements

Create an array in VL with up to 100 elements, call it Username[100]. Do the following: Prompt user for a name to check, or enter Stop to end, both in quotes.

  Analyze algorithm to determine length of longest substring

Explain and analyze the algorithm to determine the length of longest substring that appears both forward and backward in an input string T[1 . n].

  Create a map and store the names with associated student id

Display the values from the priority queue using the peek() method. Describe your observation of change to the list of names in the report file.

  Develop a solution for the problem and mention algorithms

Spaces between tokens are allowed but not required. The program will convert the (user input) infix expression to postfix (RPN) form and display the converted expression on the screen.

  Algorithm for locating nth successor in circlar linked list

Write algorithm or code segment for locating nth successor of an item in circlar linked list (the nth item that follows the given item in the list).

  Important java questions

Add a method addText to the Question class, and provide a different implementation of Choice Question that calls add Text rather than storing an array list of selections.

  Systems analysis and design

What are the benefits of a thorough system requirements document? Drawbacks? How can a system requirements document be used to manage stakeholder expectations?

  Normalized relations for a database

Suppose that a information communications network links a computer at corporate headquarters with a computer in each retail outlet. The chain includes fifty stores with an average of 75 workers per store.

  Implement the rabin

Implement the Rabin - Karp matcher and Boyer Moore string matching algorithm. Give analysis for pattern matching in firewall which algorithm is best.Write A algorithm and program and show the oputput of the program

  Write a method that uses the bst to output

Write a method that uses the BST to output to the screen the list of entries in alphabetical order. Each entry is displayed on a new line.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd