Assignment 2
Using Objects, Arrays and Loops
Due Saturday September 21 before 11:30pm

Overview

For this assignment you will develop one interactive page. This page allows its user to simulate dice rolls as discussed in class.

User Interface Design

Design an interactive web page that allows a user (dice roller) to do the following:

  • Roll a set of dice
  • Specify the number of sides for the dice (all dice in a set have the same number of sides)
  • Specify the number of dice in a set
  • Reset the statistics

The page should also keep a report of the following:

  • The outcome of each roll
  • The history of roll set totals
  • The average of the totals

When the dice roller resets the statistics, it should clear the history and the average

Implementation

Using the DiceSet class presented in class, implement your design. Note that the DiceSet class supports all of the functionality you need and you should not change any of its code. Moreover, your code must use the methods of the DiceSet class.

Note: to change the number of sides or the number of dice in the set, your code will need to create a new Dice object.

Submission

Post your app files online, on the studentweb server. For the D2L submission, submit a zipped folder of your app files and, as a submission commnent, provide the working URL of your app on the studentweb server.

Grading

This assignment is worth 10 points. Apps that address all of the requirements will receive 10 points.