Question: You will be writing a program that accepts commands to carry out some operations to manage a list of names. Running the program will show

 You will be writing a program that accepts commands to carry

You will be writing a program that accepts commands to carry out some operations to manage a list of names. Running the program will show the user a menu. A Fivel: Terminal Window - ExamArrayList X Options Description of operations - some with example A - A Oliver (Add Oliver) 0 - Ordered list U - Unordered list D - D 1 (Delete Ist item) Q - Quit H - See this menu for help Enter an operation Type input and press Enter to send to program In the following screen shot, the texts displayed by the program are in black. The commands entered by you are in blue. Your program should be able to perform the same behaviour as follows. The following screenshots go from left to right. After the commands of "A Oliver", "A Jimmy", and "A Tom", three names are added to the ArrayList. After the O command, the ArrayList is sorted. Future U command will produce ordered ArrayList unless we add a new name making the current ArrayList out of order again. "D 1" deletes the 15 item in the ArrayList. U Unordered List Jimmy Oliver Enter an operation Tom A Oliver Enter an operation Enter an operation A Cathy A Jimmy Enter an operation Enter an operation U A Tom Unordered List Enter an operation Jimmy Oliver U Tom Unordered List Cathy Oliver Enter an operation Jimmy D 1 Tom Deleting Jimmy Enter an operation Enter an operation U Ordered List Unordered List Jimmy Oliver Oliver Tom Tom Cathy Enter an operation Enter an operation

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 Programming Questions!