IT 411
Fall 2024
Craig Miller
Weekly Notes
Assignments
- Assignment 1
- Assignment 2
- Assignment 3
- Assignment 4
- Assignment 5
- Midterm Report
- Assignment 6
- Assignment 7
- Assignment 8
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 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.
In addition to the requirements above, your submission should have the following:
On D2L, submit a zip file of a folder with the following contents:
The submitted file should include all files for your app to run successfully. Be sure to test it before submitting!
This assignment is worth 10 points. A rubric will be provided with the submission.