Question: Code this using C language and comment on each section for to understand the code. And use links for reference. Program 8 (Rectangles) Source and
1. Introduction This assignment focuses on the use of structures. You will model a group of rectangles as a collection of their vertices, using structures to represent each of those points as well as the rectangles as a whole. In doing so, you will gain familiarity with the typical file organization used when defining structures, as well as the syntax required to work with structures nested inside one another 2. Deliverables This assignment uses multiple files, versions of which are on the course website prog8 main.c: Source file containing your main function. THIS FILE SHOULD NOT BE MODIFIED Point.h: Header file containing definition of Point structure and prototypes of relevant functions. Point.c: Source file containing definitions of Point functions. Replace the code in the starter file with your own code Rectangle.h: Header file containing definition of Rectangle structure and prototypes of relevant functions Rectangle.c: Source file containing definitions of Rectangle functions. Replace the code in the starter file with your own code You are required to complete the function definitions in Point.c and Rectangle.c. You do not need to modify any other files-and absolutely should not modify the main() function-but you may add other functions in Point.h/Point.c or Rectangle.h/Rectangle.c if you deem them necessary Submit all five files (even the unchanged ones) by uploading them to your Dropbox folder. Ensure your file names match the names specified above. Failure to meet this specification will reduce your grade, as described in the program grading guidelines
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
