Question: Problem 3 : Write a diary file file 3 . txt that defines the following four points that represents the vertices of a rectangle. P
Problem : Write a diary file filetxt that defines the following four points that represents the vertices of a rectangle.
EGR ABAC Computer Programming for Engineers
Homework Set
P
Create a function, Rectangle that inputs the four points and outputs the Area and the Perimeter of the rectangle. You will need to use retrieval to calculate the width and height of the rectangle. Write formatted statements sprintf or fprintf giving the Area and Perimeter of the rectangle. Your diary should include a call to this function that assigns both outputs.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
