Question: JAVA - This is a basic class. This program must be written simply, with basic features loops, arrays and the only class can be main.

JAVA - This is a basic class. This program must be written simply, with basic features loops, arrays and the only class can be main.
Three arrays are needed to store last name, first name, phone numbers.
A method to populate Array with String nameLast, String nameFirst, String number
 JAVA - This is a basic class. This program must be

. The lookup process now prompts for both a last and a first name A reverse lookup should also be provided, allowin Rather than continuing until the user signals end-of-file (at the keyboard), the user enters a 'q' to indicate they are La g a name to be obtained by supplying the phone number. done After the user is done, the number of lookups and reverse lookups performed are printed Even though we introduce the terms state and behavior in the context of classes, the terms are still relevant here: the state by which we mean variables is enhanced via the introduction of a first name. Similarly, the behavior.e. methods - is enhanced through the introduction of a reverse lookup, as well as an enhanced name lookup (first and last). The name of your class should be Phonebook. For example, if the file phonebook.text contains: Arnow Harrow Jones Augenstein Moshe 456-789-0123 Sokol Tenenbaum Aaron 678-901-2345 Weiss Cox Langsam Yedidyah 901-234-5678 Thurm David123-456-7890 Keith234-567-8901 Jackie 345-678-9012 Dina 567-890-1234 Gerald 789-012-3456 Jim 890-123-456 Joseph 012-345-6789 Here is a sample execution of the program. User input is in bold. Your program should replicate the prompts and output lookup, reverse-lookup, quit (Vr/q last name? Arnoww first name? David David Arnow's phone number is 123-456-7890 lookup, reverse-lookup, quit (Vr/q)? r phone number (nnn-nnn-nnnn)? 456-789-0123

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!