Write a program that rolls a dice (but hide the number from player) and then ask user enter a number in range of 1 - 6. If player enters same number of computer rolled, then the player earns $10. If player enters a number that is smaller or larger by 1, then the player earns $3. If player enters a number that is smaller or larger by 2, then the player earns $1. Player has to pay $3 dollar to play once. Make a MatchDice game.
slman 0 Newbie Poster
Recommended Answers
Jump to PostDo you have any java programming questions?
Jump to Posthow can i write it in the Eclipse
well ... typing your code in eclipse, rather than in a post here would be a good start.
I don't really see anything wrong with your code above, so what exactly is it what you need help with?
All 7 Replies
NormR1 563 Posting Sage Team Colleague
slman 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
slman 0 Newbie Poster
slman 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
stultuske 1,116 Posting Maven Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.