Create and add a single C source file called t2.c. t2.c should contain the function draw_rectangle( )
Fantastic news! We've Found the answer you've been seeking!
Question:
Create and add a single C source file called "t2.c". "t2.c" should contain the function draw_rectangle( ) and agree exactly with this function declaration:
The rectangle edges are aligned with the x,y axes.
A corner of the rectangle is at the pixel at coordinate {x,y}, and the rectangle is rect_width pixels wide by rect_height pixels tall.
Each rectangle size may be negative, extending the rectangle to the left and/or up, or positive, extending right and/or down.
A rectangle wih zero in either dimension should not be drawn.
The rectangle outline is one pixel thick.
Related Book For
Principles of Supply Chain Management A Balanced Approach
ISBN: 978-1285428314
4th edition
Authors: Joel D. Wisner, Keah-Choon Tan, G. Keong Leong
Posted Date: