Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1-) and 2-) plase in C prog. PE-05b-01 (Six-sider) write a counter-controlled program that prompts the user to enter the number of times n to
1-) and 2-) plasein C prog.
PE-05b-01 (Six-sider) write a counter-controlled program that prompts the user to enter the number of times n to roll a six-sided die. The program should print to the screen the iteration of the loop and result for each roll 1 ) How many times would you like to roll? 3 roll 6 6 5 1 2) PE 05b 02 (Flash Cards) Write a counter-controlled program that creates addition problems for an elementary kid to solve. The program should prompt the user for the number of problems n to attempt. The program should produce two random integer numbers that range from 0 S num S 9 and prompt the user for the answer. The program should verify the answer and print "correct" or "wrong" to the screen. A sample format for each problem is suggested below + 4 ans: 3) PE 05b 03 (Random Numbers Within a Range) Write a function that generates a random number within a specified range. The function should take the low and high numbers for the range as integer arguments (inclusive) and return a random integer number. Test your function using a simple loop and print at least 25 numbers to the screen 4) PE 05b 04 (Roll Two Dice) Write a function that generates a random number simulating the roll of two six-sided dice. The function should take no arguments and return a random number simulating a single roll of two six-sided dice Test the function in a simple loop and print at least 25 iterations to the screen 5) PE 05b 05 (Coin Toss) Write a function that simulates slipping a coim. The function shouldStep 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