Question
In this assignment you will create a console application. This program will allow you to select Powerball numbers. For the first 5 numbers you will
In this assignment you will create a console application.
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 70 since the first 5 numbers on the Powerball lottery must be between 1-69.
The following must be included in the program:
- You must have multiple classes.
- One class must include the accessor/mutator methods, a ReadInput() method and a WriteOutput() method.
Name this first program Powerball. -The values of the first five numbers must be saved within an array. The first element of the array will equal the first number entered, the second element of the array will equal the second number entered, etc.
-However, the number entered is not to be added to the array unless it is both unique from the other numbers entered, and it also falls within the correct range of numbers.
-The second program is to be named PowerballTest and will be responsible for creating a Powerball object and invoking the ReadInput() and WriteOutput() methods located in the Powerball class. The Main() method is to contain Only a Powerball object and call the ReadInput() and WriteOutput() methods for that object. It is to contain no other code.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started