Find Jobs
Hire Freelancers

Java Hi-Lo Game

$10-15 USD

Completed
Posted over 6 years ago

$10-15 USD

Paid on delivery
Write a JAVA program to implement a simple “Hi-Lo” game using a standard deck of 52 playing cards. Your game should ask the user to enter their bankroll. Your program must verify that the user enters a positive real number. If the user did not enter a positive real number, continue to prompt them to enter their bankroll until they do so. After a valid bankroll has been entered the program should continue to repeat until either the user indicates that they want to quit or until there is no money remaining in their bankroll. When the game ends, display for the user the total number of games played, total number of wins, total number of losses, total number of ties and the ending amount in their bankroll. For each play of the game: 1. Ask the user to enter their bet. Verify that the user has sufficient funds remaining in their bankroll to cover the bet and that the bet is between $0.01 and $100.00. 2. Draw a card and display it for the user. 3. Ask the user if they think the next card will be higher or lower than the card which was drawn. 4. Draw a second card making sure that it is different in some way (either face, suit or both) from the first card drawn. If the card is exactly the same (e.g., both are the Ace of Clubs), continue to draw the second card until a different card is drawn. 5. Display the result for the user. a. If the user guessed correctly add the amount of the bet to their bankroll. b. If the user guessed incorrectly, subtract the amount of the bet from their bankroll. c. If the second card drawn is a card of the same face value but a different suit, the game is a tie and no change should be made to the user’s bankroll. 6. Display the amount in the user’s bankroll after each play of the game before asking whether the user wants to play again. Use the [login to view URL] source code provided in the course resources to implement your playing card objects.
Project ID: 15442360

About the project

4 proposals
Remote project
Active 6 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
Awarded to:
User Avatar
$15 USD in 1 day
4.9 (1288 reviews)
7.7
7.7
4 freelancers are bidding on average $61 USD for this job
User Avatar
Hi, sir I have looked your requirements and I get what u want. I have good skills in java. My price and period is negotiable. We can discuss the details via chat. Thanks. Relevant Skills and Experience I have much experience in java so I'm sure I can complete this. Proposed Milestones $77 USD - done
$77 USD in 1 day
4.9 (224 reviews)
7.0
7.0
User Avatar
hi..i am good at core java programming and can help you complete the project game project as per given specifications. please contact me soon for a discussion. Relevant Skills and Experience Over 10 years of java programming. Proposed Milestones $50 USD - Java High/Low Game Project When is your deadline?
$50 USD in 1 day
4.9 (91 reviews)
5.6
5.6
User Avatar
Java game Poker Hi Lo Relevant Skills and Experience I have the best price with the outstanding quality. Proposed Milestones $100 USD - cheap price and fair
$100 USD in 3 days
5.0 (15 reviews)
4.6
4.6

About the client

Flag of UNITED STATES
Waipahu, United States
5.0
2
Member since Oct 20, 2017

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.