Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LANGUAGE: C Write a program that simulates rolling of a pair of dice. After each roll of the pair the program sums the dice values.

image text in transcribedLANGUAGE: C

Write a program that simulates rolling of a pair of dice. After each roll of the pair the program sums the dice values. The program rolls the pair 50 times, and determines a frequency of occurrence of different sums (the sums will be in the range from 2 to 12). Additionally, the program computes the mean of the sums (over those 50 rolls), as well as its standard deviation. The output's format should be (the values are random): Sum frequency 2 3 2 12 Average: 6.23 Standard derivation: 1.24

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Power Of Numbers In Health Care A Students Journey In Data Analysis

Authors: Kaiden

1st Edition

8119747887, 978-8119747887

More Books

Students also viewed these Databases questions

Question

Is conflict always unhealthy? Why or why not? (Objective 4)

Answered: 1 week ago