Skip to content

emkpeterson/Mission-2-Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Mission #2 Assignment IS 413 - Hilton

Write a .NET console application using C# that simulates the rolling of two 6-sided dice. Use an Array to keep track of the number of times that each combination 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 you have the number of rolls, pass that number to a second class that has a method that simulates the roll of the dice for the number of times that the user specified. That method in the second class should return the array containing the results. In the first class, use that array to print a histogram (using the * character) that shows the total percentage each number was rolled. Each * will represent 1% of the total rolls.

NOTE: Due to rounding issues and the fact that you cannot print a partial asterisk, your total number of asterisks printed may not be exactly 100.

Submit a link to your GitHub repository containing your project via Learning Suite.

About

Mission #2 Code - IS 413 (Hilton)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages