Question: Problem 4 Write a MATLAB script to simulate rolling dice. First ask the user how many times (call it n) he/she wants to roll the

 Problem 4 Write a MATLAB script to simulate rolling dice. First

Problem 4 Write a MATLAB script to simulate rolling dice. First ask the user how many times (call it n) he/she wants to roll the dice. 1. Roll a dice n times and calculate how many times it lands 6 2. Roll two dice simultaneously n times and calculate how many times they land the same 3. Roll two dice simultaneously n times and calculate how many times the summation of the numbers is between 5 and 8 inclusively 4. Roll two dice simultaneously n times and calculate how many times the summation of the numbers is divisible by 3 Run your code for n 1000 and report the resuits using fprint

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!