Assignment Set 1 (Uploaded on July 19, 2013) Deadline date: July 25, before lab starts Problem 1: Write a C program to do the following. Take as input four points, whose cartesian coordinates are real numbers, from the user. Find out whether the given points form a rectangle in the given order. If not, prompt the user to give another set of four points that form a rectangle; continue till you get a rectangle as an input. Find the area and perimeter of the rectangle. Take a point whose coordinates are real numbers and find out whether the point lies inside, outside or on the rectangle. Problem 2: Write a C program to calculate the square root of a positive real number without using the system defined "sqrt" function. Instead, you implement your own 'mysqrt' function for this purpose and use it like the way you normally use the system defined sqrt function. ---------------------------------------------------------------------- Naming conventions for multiple files: For Problem 1: Suppose you have a file which contains "main" and the names of other files as 'x1.c', 'x1.h', 'x2.c', 'x2.h', ... then you should name them as 'july19-p1-yourname-main.c', 'july19-p1-yourname-x1.c', 'july19-p1-yourname-x1.h', 'july19-p1-yourname-x2.c', 'july19-p1-yourname-x2.h', .... For Problem 2: Suppose you have a file which contains "main" and the names of other files as 'y1.c', 'y1.h', 'z.c', 'z.h', ... then you should name them as 'july19-p2-yourname-main.c', 'july19-p2-yourname-y1.c', 'july19-p2-yourname-y1.h', 'july19-p2-yourname-z.c', 'july19-p2-yourname-z.h', .... ----------------------------------------------------------------------- At the top of each of your program files, add the following. If you are writing multi-file programs, then each file should have it. /*------------------------------------------------------------------ Name: Roll Number: Date of Submission: Deadline date: Program description: Acknowledgements: --------------------------------------------------------------------*/