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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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