Question: Question: C/C++ROLLING DICE PROGRAM LAB ASSIGNMENT AND LAB REPORT OBJECTIVES: Enter and run a C or C++ program that uses a function DESCRIPTION: C or

Question:

C/C++ROLLING DICE PROGRAM LAB ASSIGNMENT AND LAB REPORT

OBJECTIVES:

Enter and run a C or C++ program that uses a function

DESCRIPTION:

C or C++ program that does the following:

1) Use a loop to simulate the rolling of a pair of dice 1000 times.

2) Use the function provided namedrollto simulate the rolling of a single die.

3)Create function namedrollDiceto simulate the rolling of two dice by calling therollfunction twice

4) Count the number of times each value from 2 to 12 occurred. You will need a separate counter for each value.If the value is 2, then increment its counter. If the value is 3, then increment its counter, etc.

5) Display the result of each of the counters.

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 Programming Questions!