Question: can you please write this code in .java perferably using netbeans. Also using import java.util.Random; and Random r = new Random(); int x = 1

 can you please write this code in .java perferably using netbeans.

can you please write this code in .java perferably using netbeans. Also using import "java.util.Random;" and "Random r = new Random(); int x = 1 + r.nextInt(10);" in the code please

Part 1: Picking those winning lottery numbers! Your mom loves playing the lottery each week, but she always takes forever to pick a set of numbers. It's driving you crazy because, who does she send to the store to get her lottery tickets? You! Wonderful child that you are, you've decided to help her by writing a program that will pick some numbers for her. Awesome! Think about how you can do this. Your mom likes to play both Fantasy 5 and the regular Lotto (6 numbers), so you want to write a program that takes this in account. o For Fantasy 5, the range of possible numbers should be from 1- 36 o For the Lotto, the range of possible numbers should be from 1- 53 Don't worry about whether you get duplicate numbers (we haven't learned enough about that yet) Assume that you will be given a method that gives you one random number. *Think about how you want to present her number picks to her. You'll want to be sure to great her and include some enthusiastic text along with her numbers (e.g. "Here are your winning numbers!") For Part 1, write an algorithm for your winning lottery number program, and then do several iterations of tests (i.e., step through your algorithm to make sure that it is logically correct and gives you the correct output). Put this in a Word or Open Office document. You'll turn that document in with the program that you create in Part 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!