Computer Science

 

  • Your job is to design a user interface that displays the lotto balls that are drawn when drawing up to balls from 5 total of 30 balls.
  • Use 5 image elements to display the ball images from this zipfile: (I WILL ATTACH THE FILE)
  • Use a button to perform the drawing.
  • Use a Lotto class object in the script lotto-class.js to simulate drawing the balls.
  • Use a CSS file to set the fonts, colors, and sizes of the elements on your page.
  • Include a link back to your index page. ** ONLY SHOW FIVE BALLS IN HTML
  • The Lotto class object draws the balls with replacement and sorts them in numeric order before outputting them.
  •  Allow the user to choose how many balls from which to draw and how many balls to draw. This provides a variety of Lotto games to play.