Starting from:
$30

$24

Assignment - Javascript2 Program Solution

Prompt the user for the number of times to roll a pair of dice (use window.prompt )



Roll two die that many times, keeping track of the frequency the total of the two die rolled (2 .. 12) (use Math.random and Math.floor)



Construct and display the frequency of each roll somewhat as shown below. (eg: 2 was rolled 22 times, 3 was rolled 44 times)



Number Cnt 2 22 3 44 4 109




.....







Create the file random.html inside your UID-207e-www working directory.




Make sure to push the code to your git repository




Submit working links to both the gitlab repository and to the file on your ubuntu instance.










Some Rubric (4)




Criteria




Ratings




Pts






















Page Look/Feel
2.0 pts
1.0 pts






0.0 pts


















Full
output not clean, eg: numbers not


No
2.0 pts




Marks
aligned...






Marks
























Die Rolling
3.0 pts


2.0 pts


1.0 pts


0.0 pts


















Well


not sufficient error


no error


No
3.0 pts




done


checking


checking


Marks
























Output showing
5.0 pts


0.0 pts








frequency










Full Marks


No Marks




5.0 pts
































Comments, variable
3.0 pts


0.0 pts








names...










Full Marks


No Marks




3.0 pts



































Total Points: 13.0




https://miamioh.instructure.com/courses/84369/assignments/873512?module_item_id=1446692 1/2

More products