Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using assembly language Purpose: To use CMP and conditional jumps Overview of Craps The game of craps uses two 6-sided dice, where each die contains

Using assembly language image text in transcribed
image text in transcribed
image text in transcribed
Purpose: To use CMP and conditional jumps Overview of Craps The game of craps uses two 6-sided dice, where each die contains a number between 1 and 6. The total of the two sides that face up is the total for a roll of the dice. The first roll that a player throws in Craps has three possible outcomes: they can win, they can lose, or they will continue to roll. On the first roll, if the player gets a 7 or 11 that is a win. On the first roll, if the player gets a 2, 3, or 12 that is a loss. On the first roll, if the player gets anything else (4,5,68,9,10) then that is their mark(point) and they need to continue to roll trying to get that mark(point). Lab 5 Simulate a "first roll" of two dice in Craps. For each "first roll" determine if the roll is a Win, a Loss, or a Mark. Tally the occurrence of each possibility. After the loop, display the counts for each possibility. Do this for the number of rolls the user wants. Tyou can assume for this lab they will not enter a number

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

More Books

Students also viewed these Databases questions