Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

good evening, this is my homework for the week. any help would be greatly appreciated. Mission #7 CS 1400 Hilton Write a program that simulates

image text in transcribed

good evening, this is my homework for the week. any help would be greatly appreciated.

Mission #7 CS 1400 Hilton Write a program that simulates the rolling of two 6-sided dice. Use an Array to keep track of the number of times that each total number is thrown. In other words, keep track of how many times the combination of the two simulated dice is 2, how many times the combination is 3, and so on, all the way up through 12. Allow the user to choose how many times the "dice" will be thrown. Then, once the dice have been thrown the specified number of times, print a histogram (using the * character) that shows the total percentage each number was rolled. Each * will represent 1% of the total rolls Sample session: Welcome to the dice throwing simulator! How many dice rolls would you like to simulate? 1000 DICE ROLLING SIMULATION RESULTS Each "*" represents 1% of the total number of rolls. Total number of rolls = 1000 12: ** Thank you for using the dice throwing simulator Goodbye! Submit your .java file containing the source code via WSU Online

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

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

Solve tan2 + 2 tan = 3cot for 0 Answered: 1 week ago

Answered: 1 week ago

Question

trial balance 2 2

Answered: 1 week ago