Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 header files
prog8_main.c
http://mjgeiger.github.io/eece2160/programs/src/prog8_main.c
Point.h
http://mjgeiger.github.io/eece2160/programs/src/Point.h
Point.c (starter file)
http://mjgeiger.github.io/eece2160/programs/src/Point.c
Rectangle.h
http://mjgeiger.github.io/eece2160/programs/src/Rectangle.h
Rectangle.c (starter file)
http://mjgeiger.github.io/eece2160/programs/src/Rectangle.c
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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

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_2

Step: 3

blur-text-image_3

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

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

1. Describe a dialectical approach to cultural transitions.

Answered: 1 week ago

Question

What does the approach of DM as practice focus on?

Answered: 1 week ago