Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You roll two dice. Each die has six faces, which contain one, two, three, four, five and six spots, respectively. After the dice have come

You roll two dice. Each die has six faces, which contain one, two, three, four, five and six spots, respectively. After the dice have come to rest, the sum of the spots on the two upward faces is calculated. If the sum is 7 or 11 on the first throw, you win. If the sum is 2, 3 or 12 on the first throw (called craps), you lose (i.e., the house wins). If the sum is 4, 5, 6, 8, 9 or 10 on the first throw, that sum becomes your point. To win, you must continue rolling the dice until you make your point (i.e., roll that same point value). You lose by rolling a 7 before making your point.

You should have 2 individual and complete Netbean project, namely Craps and CrapStat.

CrapStat means an adv. version of Craps with additional information - count of 1s, 2s, 3s, 4s, 5s, and 6s showing after "Player wins" / "Player loses".

Netbean result:

image text in transcribed

run: Player rolled 4+6=10 Point is 10 Player rolled 4+5=9 Player rolled 4+5=9 Player rolled 2+2=4 Player rolled 2+5=7 Player loses

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Oracle Databases On The Web Learn To Create Web Pages That Interface With Database Engines

Authors: Robert Papaj, Donald Burleson

11th Edition

1576100995, 978-1576100998

More Books

Students also viewed these Databases questions