Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with this java program without using arrays and use JOptionPane for user input numbers given are any 3 numbers you input to

Please help me with this java program without using arrays and use JOptionPane for user input

numbers given are any 3 numbers you input to see if you won and amount is how much money you want to bet image text in transcribed

IV, Program Testing Test your programthoroughly and exhaustively before submitting it. Hint: There is only 1 way to win a Straight Bet, but there are 6 ways to win a Box Bet without duplicates and 3 ways to win a Box Bet with duplicates. Test them all. V. Algorithm Here is a high-level algorithm for the method that evaluates the player's bet: if straight bet) f (all three numbers match in exact order) player wins $600 for each $1 wagered else plaver Joses else // Box bet if (all three numbers match in any order) // player wins if (player's number contains duplicates) player wins $200 for each $1 wagered else// no duplicates player wins $100 for each $1 wagered else player loses

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions