Alright ladies and gentlemen, it’s time to put your knowledge to the test!
I’ve been receiving tons of emails and comments with respect to wanting programming assignments. But I wasn’t sure exactly how I was going to go about doing it, until now.
Here’s what we’re going to do, I will outline the requirements for a practice assignment, and I will include an archive file with the contents of the assignment (at the top of this post). I will also include a video which will explain how to import the assignment into your SpringSource Tool Suite IDE and set it up so you’ll be good to go.
The assignment is to simulate the lottery. You will need to implement code that will generate 6 lottery numbers between 1 and 49 (inclusive), you will then need to implement the code that will read in 6 numbers that you will type into the console yourself. Then the numbers you input will be compared against the randomly generated lottery numbers and it will output which numbers match (if any).
Here’s the catch, you will need to make sure there are no duplicate numbers (either when being randomly generated or inputted in the console). It’s just like a real lottery after-all!
Video Explanation on How to Import the Assignment
Here’s a video that will explain how to import the assignment into your IDE.