Closed

Write a class called PowerBall that simulates the Power Ball lottery game. - open to bidding

This project received 6 bids from talented freelancers with an average bid price of $18 USD / hour.

Get free quotes for a project like this
Employer working
Project Budget
$15 - $25 USD / hour
Total Bids
6
Project Description

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 through 35, and an integer that specifies the jackpot for the game. Your PowerBall class must have the following constructor / methods:

Create a program called PowerBallConsole that includes a main method to test your PowerBall implementation. Your PowerBallConsole program 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:

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online