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 3: Write a diary file file3.txt that defines the following four points that represents the vertices of a rectangle.
P1=[1.2,3.4]
P2=[1.2,5.6]
EGR 1500 AB/AC- Computer Programming for Engineers
Homework Set 7
P3=[6.7,5.6]
P4=[6.7,3.4]
Create a function, Rectangle1, 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.
 Problem 3: Write a diary file file3.txt that defines the following

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!