HW 13 CPSI 20023 Due M 12/7/2026
Please email your answers to: CPSI20023@gmail.com. Do not submit code as a shared document, because too often we run into permission problems and format conversion problems. Instead, put it in the body of the email or as an attachment.
1. Do this, and hand in a screenshot of the the final result.
2. Using a sandbox, provide the values provided by your computer for: window.innerHeight, screen.height, window.screen.height (same), screen.availHeight, window.location.href, location.href (same), and navigator.cookieEnabled. Also provide a screenshot for one of these.
3. Vocabulary can make you smarter, and college is supposed to make you smarter! Recalling the class discussion, a taxonomy is an organized way to put things into categories, and often also into subcategories, sub-subcategories, etc. A taxonomy then forms a tree of categories, there subcategories, sub-subcategories, etc. For example, the animal kingdom is a big category. It has a bunch of subcategories, among the most well-known being animals with spines, and arthropods (insects, spiders, crabs, etc.). Moving a few levels down from the spine category there is a sub-sub-...-category of mammals, one of reptiles, one of birds, one of fish, etc. Mammals have a subcategory of rodents which have a subcategory of mice which have a subcategory called the white-footed mouse. Mammals also have cats and dogs (and people), basically any animal where the babies drink milk. Another kind of tree is a partonomy, which shows the parts of something. So a car (the root of a partonomy tree) has wheels and and engine and so on as child nodes, and a wheel node in the tree has a tire and a rim, and a tire has a sidewall and tread, and so on. Using Gemini.google.com, guide it to help you learn what a partonomy is. You will need to make it give short answers, instead of its typical behavior of answering questions with long articles. This way you can ask follow up questions and have an interactive session with it. (i) Hand in either a copy paste of your chat thread with the AI, or a publicly accessible link to the chat thread. Gemini sometimes allows you to set the chat thread URL to be publicly viewable (depending on the account and the network), but if that function is not available you would have to download or copy paste the transcript instead. Using the terms delve and tie, and in about 100 words (ii) Why is https://dberleant.github.io/IFSC3300/BOM.png a partonomy?
4. Test out the cookie demo shown in class. Make and delete cookies. Try a different date format, since JavaScript can often handle different formats. What did you try and did it work? (i) Explain. (ii) Also explain the bakeIt() function in the page source code. (iii) Hand in a screen shot.
5. In the previous HW you improved a program by adding animation to it. This time, improve it some more by adding the use of (i) a BOM item, and (ii) cookies. Explain the experience, and how the BOM and cookie functionalities work. Also hand in the code.