Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CODE MUST BE IN C# (CSHARP)!!!! Wagner has been getting into triangles recently and would like a program that can draw them for her. She

CODE MUST BE IN C# (CSHARP)!!!!

Wagner has been getting into triangles recently and would like a program that can draw them for her. She would like to see what they looked like while in mint condition and in modern day condition (with pieces missing)

Enter 1 to display full triangle

Enter 2 to display partial triangle

Enter 3 to exit

If the user enters anything other than 1, 2, or 3 they should be informed it was an invalid choice and prompted with the menu again.

Write a program that displays a solution in this structure, but the structure can go from 3-9 rows. These rows should generate randomly.

(No hardcoding please! Solution should use nested loops)

O

O O

O O O

O O O O

Create a random number generator that will randomize the spots that have stone.

Write a program that outputs a randomized pattern like the following:

(No hardcoding please! Solution should use nested loops)

O

O

O O

O O O

Random rnd = new Random();

Int number = rnd.Next(2);

Returns a number between 0-1

CODE MUST BE IN C# (CSHARP)!!!!

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

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

Briefly describe how the data are used to create profiles of users.

Answered: 1 week ago