Write a program to roll dice (use the “rand” function) for 36,000 times and then calculate the number of occurrences of each number (1 to 6) as well as the probability of each number. IN C PROGRAMMING LANGUAGE AND COMMENT EVERY STEP IN DETAILS PLEASE

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter3: Assignment, Formatting, And Interactive Input
Section3.2: Formatting Numbers For Program Output
Problem 10E
icon
Related questions
Question
  1. Write a program to roll dice (use the “rand” function) for 36,000 times and then calculate the number of occurrences of each number (1 to 6) as well as the probability of each number. IN C PROGRAMMING LANGUAGE AND COMMENT EVERY STEP IN DETAILS PLEASE
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Structure chart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage