Answered step by step
Verified Expert Solution
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
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 OnlineStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started