HW11: LocalStorage and the List App due Mon 17 Nov 23:59

Purpose

In this assignment you will:

Context

In all you do please remember that being a part of CSCI@HSU means DOING THE RIGHT THING.

So, do this assignment in a way that demonstrates integrity, develops competence, is correct, and honors God ... because what we do matters!

Allowed and Disallowed Resources

In completing this assignment you MAY use/access the following resources:

You may NOT use/access any resource that exists in the universe that is not listed above. Examples of resources you may NOT use include, but are not limited to:

Failure to abide by these guidelines will result in a zero for the assignment and the incident will be reported to the university provost as a violation of the university academic integrity policy. A second incident of academic dishonesty (whether from this course or another computer science course) will result in an F in the course.

Overview

In this assignment we will finish the list app for the semester and will leave the door open for future enhancements. This assignment requires some good thought on your part.

Part 1: Implement Update Behavior (12 pts)

You may remember that each item in the list is stored in an editable text box which allows the ability to modify an entry in the list after it has been added. Rules regarding modifying an entry can be tricky. Here is how we want modified entries to behave:

Part 2: Opening Door for Future Enhancements (12 pts)

Some advise before you start this section: Commit and push your current work just in case you make a mess and want a fresh start!

In our current version of this application, the user is limited to using only a single list. Suppose we wanted to allow usage of multiple lists. In this way the user would select which list they want to work with and could manage multiple lists by switching among them.

To make this concept a full-fledged implementation we would need to provide ways to create multiple lists, remove lists, select a list for current use, etc. For this assignment we will only do the last part as follows:

Modifying the app to allow multiple lists will require some good thinking. NOTE: You do NOT need to implement the ability to add new lists and delete lists from the interface. However, there should be 4 lists that have been manually added and the user should be able to switch among the lists and the changes and state of each list should be saved in a single variable in localstorage so that each list can be tracked properly.

IMPORTANT: When testing your code, be sure to do a final test in which you delete the masterlist variable from your browser's localStorage and then run from scratch. In that class the four lists should be created as empty lists. (Keep in mind, that will be the state of my browser when I test your code. That is, there will be nothing in localStorage).

Grading and Submission

Your final solution should be place in your hw11 directory in your work space and should be pushed to GitHub.