Need working c program code for a program that has the


Need working c program code for a program that has the ability to draw patterns of characters on the output terminal that will show a solid square, a hollow box or a solid isosceles triangle provided the character to draw with the # of rows.
To clarify, if character uses * and the number of rows .

Program must prompt the user to enter an "S" to have a square drawn, a 'B' for a box, or a 'T' for a triangle. Next, user should be prompted to enter the # of rows and a character to use for drawing. Figure out the an appropriate input validation. Write a function to draw each figure. Each function should take a number of rows and drawing characters as parameters.

Figures:

***** ***** *
***** * * ***
***** ***** *****

 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Need working c program code for a program that has the
Reference No:- TGS0646336

Expected delivery within 24 Hours