Computers and Technology

Write a program in c that simulates the rolling of two dice. the program should use rand to roll the first die, and should use rand again to roll the second die. the sum of the two values should then be calculated. note: since each die can show an integer value from 1 to 6, then the sum of the two values will vary from 2 to 12, with 7 being the most frequent sum and 2 and 12 the least frequent sum. the picture above shows 36 possible combinations of the two dice. your program should roll the two dice 36,000 times. use a single-subscripted array to tally the numbers of each possible sum appears. print the results in a tabular format. also determine if the totals are reasonable, i. e. there are six ways to roll a 7, so apporimately 1/6 of the rolls should be 7.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 02:30, bre563
Research data that is presented using descriptive language is said to be
Answers: 2
image
Computers and Technology, 23.06.2019 15:20, headshotplayzcod
In a game with three frames, where will the objects on layer 1 appear? a. next to the play area b. in the middle of the game c. behind everything else d. in front of everything else
Answers: 1
image
Computers and Technology, 24.06.2019 18:30, WATBOI01
What is the local portion of the e-mail address below? twrigley@gumchewer. biz a.) @ b.) biz c.) gumchewer d.) twrigley
Answers: 1
image
Computers and Technology, 25.06.2019 01:30, kalag9478
If the average computer chip had 1,200 transistors per square inch in 1970, approximately how many transistors per square inch would one have in 1976? use moore's law to calculate your answer
Answers: 1
Do you know the correct answer?
Write a program in c that simulates the rolling of two dice. the program should use rand to roll the...

Questions in other subjects:

Konu
Physics, 02.02.2021 14:00
Konu
English, 02.02.2021 14:00
Konu
History, 02.02.2021 14:00
Konu
English, 02.02.2021 14:00