Question: IN C# DO NOT COPY PASTE CODE, the other code from this question is incorrect and does not do what i need A private field

IN C#

DO NOT COPY PASTE CODE, the other code from this question is incorrect and does not do what i need

A private field for the number of sides of the die.

A constructor that takes an integer between 4 and 20, inclusive and sets the number of sides of the die.

A method, rollDie(), returns the face value when the die is rolled. Use a Random number to roll the die.

Write a main method that will create two die with the same number of sides, continually roll the dice, and report the result of each roll. It should stop when snake eyes are rolled (double 1s) and report the number of rolls. You may write this as a console application or a Windows Forms application; include a screenshot of your program running with successful output.

What the end result should look likeIN C# DO NOT COPY PASTE CODE, the other code from this

Transcribed image text

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!