Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C# Arrays Plan of Attack 1. For each of the two assignments, create an individual VS solution 2. Make sure you understand what is required
C# Arrays
Plan of Attack 1. For each of the two assignments, create an individual VS solution 2. Make sure you understand what is required for this assignment! This is just like the real world: if there is ambiguity, it's up to you to resolve it. Review the materials carefully and ask clarifying questions when needed. 3. Plan and estimate your work, but this assignment does not require you to submit a time sheet with your solution. 4. Build pseudocode or a flowchart to help you work out the logic. 5. Write down a set of test cases that will help you to ferret out logic problems and ensure that your code is working 6. Code, test and debug using your test cases. And remember: Do not use goto, break (except in a switch statement) or continue. Do not use return or Environment.Exit() Do not use variables of type var. Do not include any commented-out code in your submission. Remove all unnecessary using statements. General requirements for each simulation: The program must behave as described in the spec. The program must execute without any exceptions (i.e., run-time errors). There must be no warnings. The code must conform to the course Software Development Standards in all other respects, including comments. Numeric values must be right-justified and appropriately formatted. Happy coding! Specifications start on the next page. 2 Homework 4.1 - Yosemite Sam Dice simulator (20 of 60 points) Specification Yosemite Sam, owner of the Rising Gorge Saloon, is considering introducing gaming to his establishment. To determine how the house can win at dice games, he wants to understand the probabilities associated with hitting a specific number when rolling two dice. He has contracted with ACME Industries Simulation Division to create a dice rolling simulator. The simulator is to work as follows: Display a nice banner explaining the simulation in brief. Read a value from the user that tells how many times to roll the dice. Any positive whole number is acceptable. If the user enters a non-numeric value or non-positive value, use the default number of rolls: 100,000. Simulate rolling two dice using the Random class the number of times specified. Tally how many times each possible combination of pips appears. Note that each die has values 1 through 6, so the possible number of pips runs from 2 to 12, inclusive. At the end of the simulation, print the following: A table of results. For each row, print two columns The number rolled (2-12), and A count of times that number is rolled. Accumulate the total number of rolls and print it as a total row. This is a check to ensure the correct number of rolls was executed. 3 For full credit... Naming Submit your program as a .cs file named Step 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