Find Jobs
Hire Freelancers

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
Project ID: 5338577

About the project

8 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
8 freelancers are bidding on average $77 USD for this job
User Avatar
Hi, I am Java expert and can surely help you here with this project, Please let me know if you are interested. Thank You
$80 USD in 1 day
4.7 (468 reviews)
7.5
7.5
User Avatar
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)
$83 USD in 2 days
4.9 (50 reviews)
6.2
6.2
User Avatar
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
$35 USD in 1 day
4.9 (57 reviews)
5.1
5.1
User Avatar
Hi, I have working in Java for the last 4 years. I would like to help you with your project and I can guarantee a high quality code. Cheers
$30 USD in 1 day
5.0 (18 reviews)
4.3
4.3
User Avatar
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.
$35 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I will implement this class for you gladly, in Java. I'm a Java developer for some time now, and sure I can do this for you the best way.
$166 USD in 5 days
0.0 (0 reviews)
0.0
0.0
User Avatar
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.
$99 USD in 2 days
0.0 (1 review)
0.0
0.0

About the client

Flag of UNITED STATES
Wilson, United States
5.0
3
Member since Jan 20, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.