Menu

(Solved) : Create Web Page Simulates Lottery Javascript Program Create Array Six Numbers 1 40 Inclusi Q37457673 . . .

Create a web page that simulates a lottery. The JavaScript program will create an array of six numbers between 1 and 40 (incl

Create a web page that simulates a lottery. The JavaScript program will create an array of six numbers between 1 and 40 (inclusive). The numbers will be gener- ated randomly. Be su does not contain duplicates. Sort re to check that the array the array in ascending order. Next, have the user enter the six numbers from an imaginary lottery ticket the user purchased. Sort, if necessary. Check to see how much, if anything, the user has won, using the following table of possible winnings: Number of Matches Amount of Winnings 5.00 50.00 S 100.00 S 100,000.00 4 The page should display the winning number, the user’s number, the number of matches (if any) and the winnings (if any). Save the page with the filename lottery.htm1. Submit your work as instructed by your teacher. Show transcribed image text

Expert Answer


Answer to Create Web Page Simulates Lottery Javascript Program Create Array Six Numbers 1 40 Inclusi Q37457673 . . .

OR