Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE HELP WRITE THE CODE IN C LANGUAGE . PLEASE EXPLAIN. THANKS Intro to C - Assignment 3 Shape Drawing Now that we have functions
PLEASE HELP WRITE THE CODE IN C LANGUAGE. PLEASE EXPLAIN. THANKS
Intro to C - Assignment 3 Shape Drawing Now that we have functions and loops, let's use them to draw something in the console Your program must Ask the user for which option they want from a list o Square o Right Triangle o Diamond Ask the user for the size of the shape o o o You do not need to make sure it will fit on-screen It does not need to allow for non-whole numbers However, it must request new input if the input is negative Display the results to the user Drawing each shape must be handled in its own function (e.g. a drawSquare(int s) function to draw a square with a side of length s) Use whatever characters you want to draw the shape These do not need to be perfect, but should be rather close to the requested shape o o o 5% of the grade will be removed for each day the assignment is late (up to 30%). If you have extenuating circumstances and need an extension, please contact me before the due date Please submit your main.c file as [YOUR NAME] assignment3.c, and include the honor code with your submission. Extra Credit (10%) Add an additional shape of your choice (which is not the same as any of the existing shapes) Example Input and Output elcome to the Shape Drawing program! lease make a selection: 1 - Square 2 Triangle 3 Trapezoid our choice:2 Triangle: hat is the height of the triangle? 12 hat is the width of the triangle? 6 ress any key to continue .. . You do not need to match this input and output exactly, but they're a guide for what you would want to aim forStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started