Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

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_2

Step: 3

blur-text-image_3

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

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

3540416641, 978-3540416647

More Books

Students also viewed these Databases questions