It's finals week and I'm overloaded. I would greatly appreciate it if someone could code this for me. Shouldn't be too hard for someone with experience (something I don't have).
This program will allow you to select Powerball numbers. For the first 5 numbers you
will be requested to enter a number that is greater than zero and less than or equal
to 59. However, there’s a catch! Each number must be different.
When any of the first five numbers is less than 0 or greater or equal to 59 the user will receive a message to this effect and will be asked to re-enter the number. You will create a code that will display one message when a number less than 1 is entered and a different message if a number greater than 59 is entered.
If the number is the same as any number entered before it (with the exception of the powerball number) the user will receive a message to the effect asking to re-enter the number. This is the same for the 2nd through 5th numbers
When entering the powerball number, if the number entered IS NOT between 0
and 39 then the user will receive a message to this effect and asked to reenter the
number. One message will display if the number is less than 1, and a different if
the number is greater than 39.
The following MUST be included in the program:
• You must have multiple classes. One that contains the accessor and mutator
methods, a readInput() method and a writeOutput() method. You will not
use the mutator methods but include them anyway to show that you know
how to write them. Name this first program “Powerball.java”.
• The second program is to be named “PowerballTest.java” and will be
responsible for creating a Powerball object and calling the writeOutput() and
readInput() methods from the Powerball class.
Submit both the following programs in zip format. You will not be asked to
resubmit if you forget to include one of the files in your submission. Points will
simply be deducted accordingly.
Powerball.java
Powerball.class
PowerballTest.java
PowerballTest.class
I just need the 2 .java file codes. I will turn them in to .class myself.