Question: Need help with MATLAB code. Here is an example on how it should look like Write a MATLAB program to simulate the Shut the Box

Need help with MATLAB code.

Need help with MATLAB code. Here is an example on how itshould look like Write a MATLAB program to simulate the Shut theBox Party Game that can: 1. Play Shut the Box for singleor multiple players automatically and intelligently. 2. Ask the game host toHere is an example on how it should look like

input how many players will choose the numbers to cross out for

Write a MATLAB program to simulate the Shut the Box Party Game that can: 1. Play Shut the Box for single or multiple players automatically and intelligently. 2. Ask the game host to input how many players will choose the numbers to cross out for themselves. Ask the game host to input how many players will let the computer select numbers to cross out for them automatically. Use two (2) 6-sided dice to play Shut the Box game for each player sequentially. 3. 4. 5. For each player: a. Print the player ID number clearly in the command window (i.e. Player 1, Player 2, etc.... b. Print a number strip from 1 through 12 in the command window c. Generate two (2) random integers between 1 and 6 to represent the face value of rolling two dice. d. Print the two (2) dice values on screen after each roll e. Sum the dice value and print the sum on screen

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!