Write a phonebook that will have four seperate classes

Assignment Help Computer Engineering
Reference no: EM132119011

I am really in need of help with this program I am so lost and none of the solutions people are giving are correct. Thank You for your help I aprreciate it.

In JAVA (you can use NetBeans compiler), write a PhoneBook that will have FOUR SEPERATE CLASSES,

Person: which represents the name and phone number of a person, you will store instances of this class in the phone book

PhoneBook: which represents the phone book. The class should contain a binary search tree as a data field. This tree contains the people in the book.

Menu: which provides the program's user interface-contains a main() method which creates a PhoneBook object, displays the PhoneBook's methods as different menu selections and invokes the PhoneBook method the user selects

HashTable: which is the ADT HashTable. This is the class which contains the PhoneBook's collection of data (all of the People objects in the PhoneBook), as well as the operations which can be performed on that collection of data.

This Phone book should be able to...

Add: Adds a person's name and phone number to the phone book.

Delete: Deletes a given person's name and phone number from the phone book, given only the name.

Find: Locates a person's phone number, given only the person's name.

Change: Changes a person's phone number, given the person's name and new phone number.

Quit: Quits the application, after first saving the phone book in a text file.

The key to this project is in the implementation of a hashCode() method, which "translates" a key value into a numeric index value, which identifies the location in which an item will be "stored" in the hash table.

You must also consider how to resolve a "collision". This is when two key values are translated into the same index value.

Reference no: EM132119011

Questions Cloud

Botanist studying freshwater plants : Suppose you are a botanist studying freshwater plants. During a stream quality survey, you noticed that the size of Pistia stratiotes
Why polar and charged molecules tend to be soluble : Why polar and charged molecules tend to be soluble (hydophilic) in water.
What do you do to connect to what you are reading : When you are reading an easy piece of text, for instance a piece of fiction you might read for fun, what do you do to connect to what you are reading?
Should erythrocytes still be considered eukaryotic cells : Red blood cells (Erythrocytes) have no nuclei, mitochondria, or other organelles when they are mature. These organelles are ejected when the erythrocyte enters
Write a phonebook that will have four seperate classes : Person: which represents the name and phone number of a person, you will store instances of this class in the phone book
Discuss at least one example to illustrate the distinction : The term "theory" is often used in everyday conversation essentially to mean "a wild guess."
Evolutionary significance of the location of the ecomorph : What is the evolutionary significance of the location of the ecomorph on or near the live tree?
Genetic defects or gene knock-out studies : Trying to answer this question: Genetic defects or gene knock-out studies are critical tools understanding the operation of the immune response
Frequency of individuals homozygous for the recessive allele : If the frequency of individuals homozygous for the recessive allele leading to albinism were reduced from one in one thousand to one in one hundred thousand

Reviews

Write a Review

Computer Engineering Questions & Answers

  How to establishing a secure computer room

Include the principles of separation of duties to find out who should be granted access into the computer room and the type of access they should have.

  What assumptions are required for linear regression

Do gradient descent methods always converge to same point? What assumptions are required for linear regression? What if some of these assumptions are violated?

  Write a complete little man program to input numbers

Write a complete little man program to input numbers until 0 is reached. for each imput number, if its greater than or equal to the number to the first number.

  Discuss about the physical security

Physical security. Theft Preventive Measures for Interconnected Personal Computer Devices as Proactive Physical Security of Data.

  What are the three steps in an event-controlled loop

What are the three steps in an event-controlled loop? Distinguish between a count-controlled loop and an event-controlled loop.

  Development of the clients database system

You are required to present an overview of the fact-finding techniques that your company intends to use to support the development of the client's database system.

  Demorgans theorem

Compute by means of the truth table the validity of DeMorgan’s theorem for three variables: (ABC)’ = A’ + B’ + C’. Simplify the following expressions using Boolean algebra. AB + A(CD + CD’)

  Describe the disadvantages of normalizing a database to a

write a 200- to 300-word short-answer response for the followingdiscuss the disadvantages of normalizing a database to

  Write an enhanced for loop that prints all elements in array

Write an enhanced for loop that prints all elements in the array values. Write enhanced for loop that multiplies all elements in a double[] array named factors.

  Which optimization method acheieves the best performance

E19: Numerical Methods for Engineering Applications Spring 2016 - PROJECT 4. Which method is slowest? Fastest? Explain why you think that might be the case. Which optimization method acheieves the best performance, and why

  Write function named reduce that takes two positive integer

Write a function named reduce that takes two positive integer arguments, call them num and denom, treats them as the numerator.

  What can go wrong in bisection

Vectorize MySqrt so that it can handle the case when A is a matrix of nonnegative numbers.

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