Question: Design, develop and implement a Java program to manage a list of tasks. You should use the Java List or ArrayList classes. Provide the necessary

Design, develop and implement a Java program to manage a list of tasks. You should use the Java List or ArrayList classes. Provide the necessary Java classes for solving this problem. The program should prompt the user with the following menu:

 MY TASK MANAGER 
 A) ADD TASK(S) TO MY LIST R) REMOVE TASK(S) FROM MY LIST D) DISPLAY TASKS ON MY LIST E) EXIT TASK MANAGER 
 Enter the letter for the option you want to perform: 

Then if the option A) is selected, the program should prompt the user with

 Enter a task to add to your list: 

The task will be added to the end of the list. After that the user is prompted with

 Do you want to add another task to your list? Y[N]: 

If the user selects Y then he will be asked to type a new task, otherwise if the default option N is selected the program should present the initial menu.

If option B) is selected, the program should display current tasks in the list and ask for the number of the task to be removed.

 MY CURRENT TASKS: 1. Call John 2. Get Milk 3. Do homework for CSCI 4100 4. Buy party ticket 
Enter the number of the task to remove: 

After the user enter the desired number, he/she is prompted with

 Do you want to remove another task from your list? Y[N]: 

If the user selects Y the current list will be displayed and the program will ask to type the number of the next task to be removed, otherwise if the default option N is selected the program should present the initial menu.

If option C) is selected the current list will be displayed and the numbers of the existing tasks should be arranged correspondingly. Here the display after task 2. in the original list is removed.

 MY CURRENT TASKS: 1. Call John 2. Do homework for CSCI 4100 3. Buy party ticket 

This output should be followed with the display of the original menu. If option D) is selected the program terminates.

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!