Question: Write a C # program that will obtain the size and type of shape to draw on the console screen. Your program will complete

Write a C\# program that will obtain the size and type of shape to draw on the console screen. Your program will complete the following:
- Input the shape size as an integer. Check for the value being invalid, too low (must be 5 or larger) or too high (must be less than or equal to 25). See the example shown below; separate error messages are required for each type of error and use a loop to handle the errors.
- Input the type of shape as a string. Acceptable values are "line", "square", or "triangle" in lower case. Any other string will display an error message. Use a loop to force the user to enter a correct shape.
- Draw the shape using for loops with the * character as shown in the examples below.
- The program will be repeated until the user elects to end the program after a shape has been drawn.
Write a C \ # program that will obtain the size

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 Programming Questions!