Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 for

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

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions

Question

Identify and describe the various types of employment tests.

Answered: 1 week ago

Question

1. Design an effective socialization program for employees.

Answered: 1 week ago