Question
In Java, create a To-do list Step 1: Declare a partial array to hold String values. Allow the user to determine the size of the
In Java, create a To-do list
Step 1: Declare a partial array to hold String values. Allow the user to determine the size of the array and to enter a number of tasks into the array. Print a numbered list of the tasks (numbering must start at 1). The list should display only those array elements that contain tasks empty elements should be ignored.
Step 2: Provide a simple menu to allow the user the option to add, change or delete a task from the list. Also include the option to terminate the program.
Step 3: In the main program logic, use the menu and number assigned to the task, to allow the user to add a task to the end of the list. Display an error if the user attempts to add a task to a full list. When the user opts to change a task, obtain the new task description and replace the old description with the new. When the user opts to delete a task, you must move the tasks below it up so as not to have an empty element in the list. The change and delete processes require the user to supply the task number. If the task number entered is not within the boundaries of the list, display an error and skip the process.
Step 4: Allow the user to continue processing until the user selects the terminate menu option.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started