IT 411
Fall 2025
Craig Miller
Weekly Notes
Assignments
- Assignment 1
- Assignment 2
- Assignment 3
- Assignment 4
- Assignment 5
- Midterm Report
For this assignment, you will use a JavaScript class for displaying results that are returned from its methods, including an array of elements.
Twister is game that uses a spinner that randomly produces four colors. For this assignment, you will use a class that produces results from the spinner. In addition to showing the randomly selected color, you will use the class to produce the most frequently spun color and give the user the option to display the whole history of spins. Your focus is how the results are displayed since the class methods do the production of the results for you.
Download the spinner folder (correct V2 version) and study the code in the files. The files produce a simple demo where the user can run a spinner and the selected color is presented.
Experiment with the demo files to help you understand how they work.
Try out the Spinner class in the console to see how the methods work
Using the demo as a starting point, modify the code so that it accomplishes the following:
While not required for full credit, there are opportunities to expand on the requirements. Consider presenting the results in the specified color. More advanced: allow the user to create a custom spinner by allowing them to specify the colors that the spinner can produce.
Your interactive page should have the following:
The submission should also include a written overview (less than one page) that describes your accomplishment and how you accomplished it --- include any details of help, collaboration, or use of online resources.
On D2L, submit a zip file of a folder with the following contents:
This assignment is worth 10 points. A rubric will be provided with the submission.