This short assignment on random numbers is due at 11:59pm on 8/26. Here is a video of the lesson: https://www.youtube.com/watch?v=BRVBoXk-OjkÂ
0. Please delete and clear out any other files that are in your turn in folder! I would encourage you to keep a copy in your g:/ drive as well as somewhere else in your google drive. The turn in folder is not meant for permanent storage, just for turning in files.
1. Create a class called ClassChooser (public class ClassChooser). This program will randomly determine which period your English class is in (a random int between 1 and 6) and then what your grade in that class is (a random double between 0 and 100. It should then print out those two values. Here are a couple possible outputs:
Output 1:
Your class is period 4.
Your grade is a 96.72362436236
Output 2:
Your class is period 1.
Your grade is a 13.23473473472
2. The Borish Mega Millions lottery picks its winners by choosing 5 random integers from 1 to 60 (including 60), followed by a golden ball that is a random integer between 90 and 100 (including 100). Design a java program called MegaMillions.java that will randomly choose and print one set of six mega millions lottery numbers. For this program, it is fine if some of the numbers repeat (for instance, the number 17 could show up twice - soon we will learn how to prevent this from happening).
After it prints out the numbers, have your program also print out the prize the winner will get. The prize should be a random double between 1 million and 5 million (note: your number may print in scientific notation with an E, this is fine).
Here is a possible output from your program:
Your numbers are 4, 16, 42, 11, 30.
Your golden ball is 97.
The prize is 3.264262145E6
TIP: Do not buy lotto tickets. The lotto is a tax on people who are bad at math.
Submit Millions.java to your folder in google drive!