General Instructions
Use your site on the Lourdes DMS Domain to submit your files. Transfer your code files to the server, and then submit the URL of the specific page to the Assignments tool in Canvas.
Assignment Instructions
Create a "Coin Flip" game that does the following:
- "flips" a coin 1047 times
- outputs the count and the percentage of "heads" and "tails" that result after all 1047 tries to an HTML page
Your program should include:
- a clickable event trigger on your HTML page that will start the flipping (e.g. a button)
- looping logic to flip the coin 1047 times
- functionality that keeps track of the number of heads and tails
- functionality that calculates the percentage of heads and tails
- functionality that writes the final results of the flips (count and percentage) to the HTML page
For this assignment...
- your visual design is completely up to you. You may use a simple text-only approach or create something more realistic.
- you may not copy code
- you may not use the alert() command to output final results (though you can use it for error checking)
Evaluation Criteria
To successfully complete this assignment, your page must
- integrate HTML, CSS, and JavaScript in a functioning page
- demonstrate functioning and accurate looping logic
- demonstrate the other algorithmic functionality indicated in the assignment
- demonstrate outputting values to an HTML page
- be free of coding errors