Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Histogram - BY C NOT C + + + PLEASE, write CODE by C Program Write a program that queries the user for a number

Histogram - BY C NOT C+++ PLEASE, write CODE by C Program
Write a program that queries the user for a number of times two roll two 6-sided dice and the simulates rolling
them. Count the number of times each value is rolled using an array, and display the percentage and frequency
of each roll in a histogram similar to the following example:
Enter number of rolls:45
histogram:
02(0.00%):
(4.44%):**%
(8.89%):********
(11.11%):**********
(20.00%):******************
(28.89%):**************************
(0.00%):
(11.11%):**********
(4.44%):**%
(8.89%):********
(2.22%):**
image text in transcribed

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions