Before You Start
There's one important data structure you need to learn about first before you begin this assignment.
It's not required that you learn this new data structure, but it will help with this assignment.
To learn about it, just watch the video below:
The Code You'll Need
I'm hosting the source code that you'll need to download on GitHub.
You can view the GitHub repository here
But to actually transfer these files into your own IDE, you'll need to follow the instructions in the video below.
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 a way to download the files via GitHub. 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.
Sound good?
The Requirements
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.
GitHub Repository URI: https://github.com/tp02ga/JavaPracticeAssignment1.git
(You'll want to copy paste this into your IDE when you're cloning my GitHub Repository)