Question: In C language , create a program that does the following: Create a function to prompt a user for the number of times they would

In C language, create a program that does the following:

Create a function to prompt a user for the number of times they would like to roll an 8 sided die.

Create a 2nd function to roll the die using random number generation.

Create a 3rd function to output the results.

Global variables should not be used and the main function should only include function calls and variables. Do not call a function from another function.

Arrays shall be utilized during this assignment.

The sample output below:

How many times would you like to roll the 8 sided die? 40

You had:

7 ones

6 twos

2 threes

8 fours

7 fives

3 sixes

1 sevens

6 eights

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!