Write a class called PowerBall that simulates the Power Ball lottery game - open to bidding
$30-250 USD
Cancelled
Posted about 10 years ago
$30-250 USD
Paid on delivery
Write a class called PowerBall that simulates the Power Ball lottery game. The class should have an array of integers representing the 5 winning picks for the white balls numbered 1 to 59 (no duplicates), an integer representing the winning power ball number numbered 1 to 35, and an integer that specifies the jackpot for the game. Your PowerBall class should have the following constructor / methods:
public PowerBall(int jackpot) {}
public int getWinningPowerBall() {…}
public int [] getWinningNumbers() {…}
public int getPayout(int[] picks, int pb) {…}
public String toString() {…}
Create a program called PowerBallConsole that includes a main method to test your PowerBall implementation. Your PowerBallConsole class should create a new PowerBall instance and ask the user to enter their 5 picks plus a power ball number. The console should display the winning numbers, the power ball, and the player’s cash payout. Use the following table to determine the payout:
Powerball match only $4
1 number plus PB match $4
2 numbers plus PB match $7
3 numbers; no PB match $7
3 numbers plus PB match $100
4 numbers; no PB match $100
4 numbers plus PB match $10,000
5 numbers; no PB match $1,000,000
5 numbers plus PB match Jackpot
Hi, I'm a Sun-Certified Java Programmer with a lot of experience in the field and I can create this class for you quickly and professionally. I'm ready to start working on it immediately.
Regards, Gilad (try67)
Hello. I have a great experience in working with students assignments in c/c++ and java. I have 100% completing rate and all of the my employees are satisfied with the quality and speed of my work. See my profile to be sure of this.
I can start the work right now. Don't lose your money and time. contact me please for more information
Dear newJava,
I am interested about your project. I have bachelor's degree in Informatics, University time and I were studying Java programming in various courses like Parallel algorithms, OOP and Operating systems. Now I am doing Java programming like my free time and small projects. It would be my pleasure to work for you.
Hi newJava I just joined the site and this is my first bid! I wrote basically the same program in college. It wouldn't take long at all, and English is my native language! That seems to be the deficiency amongst a lot of the bidders that I have seen. Message me if you're interested, we can discuss further details. I would love to develop this for you.