Question: You will replace the code in the Main() section. Instead of a hard-coded data in the test script, you will create a console Java app

You will replace the code in the Main() section. Instead of a hard-coded data in the test script, you will create a console Java app with a menu that will present the user with a menu of actions. You will have to implement the code to make the following actions work properly.

System.out.println("Main menu. Please select an option");

System.out.println("1 Show list of all contacts");

System.out.println("2 Show list of all personal contacts");

System.out.println("3 Show list of all business contacts");

System.out.println("4 Search for a contact");

System.out.println("5 Display a contact if you give me the contacts id number");

System.out.println(6 Create a new contact");

System.out.println("7 Delete a contact if you give me the contacts id number ");

System.out.println("8 Dial a phone number if you give me the contacts id number ");

System.out.println("9 Send a text if you give me the contacts id number ");

System.out.println("10 Show web page if you give me the contacts id number ");

System.out.println("11 Send an email if you give me the contacts id number ");

System.out.println("12 Show address on map if you give me the id number ");

System.out.println("13 Load all contact data from file"); // not implemented yet

System.out.println("14 Save all contact data to a file"); // not implemented yet

System.out.println("99 Exit");

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!