Suppose you roll a set of n dice then the smallest sum is n


Question :

Suppose you roll a set of n dice. then the smallest sum is n and the largest is 6n. example if n=10 then the small sum will be 6 and the largest 60.

Let m be the desired sum of the numbers rolled. then n<= m <= 6n. write a program that uses the class die of example 10-9 to roll 10 die(will type it below the instruction).

Use an array of size 10 to implement 10 dice. the program prompts the user to enter the desired sum and the number of the times the dice are to be rolled.

The program outputs the number of times the desired sum was rolled and the probability of the rolling the desired sum .

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Suppose you roll a set of n dice then the smallest sum is n
Reference No:- TGS02935683

Expected delivery within 24 Hours