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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started