Question: Only need a, b, c, and d. In C please!!! 2N elements. Do this without using the realloc function (only using malloc and the required

 Only need a, b, c, and d. In C please!!! 2"N

Only need a, b, c, and d. In C please!!!

2"N elements. Do this without using the realloc function (only using malloc and the required operations) eau Pom the user. Then extend the array to have Write a program that contains the following Definition of a structure to represent a rectangle in the Cartesian plane xy based on the left-top corner coordinates and right-bottom corner coordinates (all must be floating-point numbers), that is you must coordinates of those two corners. Notice that the sides of the rectangle will always be parallel to the x and y axes a. i store the x and y b. Define an alias for the structure c Create a function that computes the length of each side of the rectangle (you only need to comput e two). Your function must receive the memory address of a rectangle structure, and the m numbers and store on each number the computed length values Create a function that emory address of two double d. and y axes, and shift the rectangle based on the values receives the memory address on a rectangle and two doubles that represent the offset in the e Create a function that receives the memory address of a rectangle and rotates it by 90 degrees clockwise around the left-top corner Create a function that receives the memory address of a rectangle and rotates it by 90 degrees counter-clockwise around the left-top corner g. Create a function that receives the memory address of a rectangle and rotates it by 90 degrees clockwise around the bottom-right corner Create a function that receives the memory address of a rectangle and rotates it by 90 degrees counter-clockwise around the bottom-right corner Create a function that receives the memory address of a rectangle and rotates it by 90 degrees clockwise around the middle of the rectangle Create a function that receives the memory address of a rectangle and rotates it by 90 degrees counter-clockwise around the middle of the rectangle h. k. Create a function that receives the memory address of a rectangle and two doubles x and y that represent the point of rotation. Perform the following in your function Verify the given point (determined by x and y) lies inside the rectangle, if not return Rotate the rectangle 90 degrees clockwise around the point given by x and y . Create a function that receives the memory address of a rectangle and two doubles x and y that represent the point of rotation. Perform the following in your function Verify the given point (determined by x and y) lies inside the rectangle, if not return Rotate the rectangle 90 degrees counter-clockwise around the point given by x and y

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!