[Solved]-Using C Write Definition Template Class Point Write Default Constructor Overloaded Constru Q37228576
Using C++Write the definition of the template class Point. Writethe default constructor, the overloaded constructor with twoparameters, the destructor, all the setters functions, all thegetters function, overload the insertion “>>” and theexertion “> have the user enter the x and y values in auser-friendly way For the << output each point using a name,and the x and y values within parenthesis Example P( 3,5). Using class Point (composition: the private datamembers should be of type Point) write the definition of thetemplate class Line. Write the basic (member or non-member)functions and write the function to find the equation of the linepassing through 2 Points. example P= (3,2) Q = (2,6) The linepassing through points P and Q is: 4x + 1y = 14 The basicfunctions: The default constructor, the overloaded constructor withtwo Point parameters, the overloaded constructor with fourparameters -representing the values of x and y for each Point-, thedestructor, all the setters functions, all the getters function,overload the insertion “>>” and the exertion “> have theuser enter the x and y values in a user-friendly way For the =2.Have the user select n (Make sure to validate n). You may have theuser enter the points’ x & y values, or use random function togenerate those values. -You must write both of themOutput thepoints and the equation of the line. Your points could be of typeintegers, doubles, or mixed. Write a complete code that test everyfunction you defined (except the basic getters and setters). Usemultiple files (classes definitions and implementations, and thetester main fi

Write the definition of the template class Point. Write the default constructor, the overloaded constructor with two parameters, the destructor all the setters functions, all the getters function, overload the insertion “and the exertion operators for that class. For the >> have the user enter the x and y values in a user-friendly way For the << output each point using a name, and the x and y values within parenthesis Example P( 3, 5) Using class Point (composition: the private data members should be of type Point) write the definition of the template class Line. Write the basic (member or non-member) functions and write the function to find the equation of the line passing through 2 Points. example p- (3,2) Q (2,6) The line passing through points P and Q is:4x1y 14 The basic functions: The default constructor, the overloaded constructor with two Point parameters, the overloaded constructor with four parameters-representing the values of x and y for each Point-, the destructor, all the setters functions, all the getters function, overload the insertion”and the exertion “<” operators for that class. For the >> have the user enter the x and y values in a user-friendly way For the << output each point using a name, and the x and y values within parenthesis, and the line’s equation. Please note: Don’t redefine what you have defined before, use within the functions what you have defined before Write the code needed to determine if two lines are perpendicular, Parallel, or just intersecting (Find the intersecting point) Write a function bestApproximate that Finds the value of m and c such that a straight line ys mx + c, best represents the equation of a given set of points (X) y), (X2, y2 ), (x3, уз ), , (Kn, Vn), given n2 Have the user select n (Make sure to validate n). You may have the user enter the points, x & y values, or use random function to generate those values. -You must write both of them- Output the points and the equation of the line Your points could be of type integers, doubles, or mixed Write a complete code that test every function you defined (except the basic getters and setters) Use multiple files (classes definitions and implementations, and the tester main file) Show transcribed image text Write the definition of the template class Point. Write the default constructor, the overloaded constructor with two parameters, the destructor all the setters functions, all the getters function, overload the insertion “and the exertion operators for that class. For the >> have the user enter the x and y values in a user-friendly way For the
Expert Answer
Answer to Using C++Write the definition of the template class Point. Write the default constructor, the overloaded constructor wit… . . .
OR

