Question: or your lab, you will create a program to manage a simple to do list. Each item on the list should be anobject of a
or your lab, you will create a program to manage a simple to do list. Each item on the list should be anobject of a ToDoItem class, which contains the following members A string attribute for storing the item text. A Boolean attribute to indicate the status of the item Finished or Unfinished GetsSets and Constructors as you deem necessary.The To Do List itself should be represented as an array of ToDoItems. Initially, size the array to store fiveitems. However, if items are added to the list that would exceed this number, the array should beresized to accommodate the new elements.When your program begins, and after you have initialized the list, the user will bepresented with a simple menu, presenting them with options to Add an Item,Toggle Item Status, List all Items, and Exit. This can be seen in the samplescreenshot to the right. Note that you do not need to provide an option to deletean item completed items will stay on the list, and just be flagged as completed.If the user chooses to Add an Item, they will be prompted to enter the items text. That item will beadded to the list at the next empty location, and then the user will be returned to the main menu.If the user chooses to Toggle Item Status, they will be presented with a numbered listing of all currentlist items and their status not including empty locations in the array, if any exist as well as a Return toMain Menu option. Selecting Return to Main Menu returns without changing any item statuses, whileselecting any other item will toggle the status of that item to its opposite Finished if originallyUnfinished, and vice versa After toggling an item, the user should then be returned to the Toggle ItemStatus menu, now updated to show the changed status. This can be seen demonstrated in thescreenshots below.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
