Write the equation of the perpendicular bisector

Assignment Help C/C++ Programming
Reference no: EM13938600

The point-slope equation of a line having slope m and pasing through pint P with coordinates (x1, y1) is y-y1=m(x-x1).

a. Write a class for a CartesianPoint, described by its x- and y- coordinates, with all appropriate operations on such objects.

b. Write a LineSegment class, described by two CartesianPoint endpoints. In addition to the usual operations, this class should provide operations to compute:

-the midpoint of the line segment joining two points and

-the equation of the perpendicular bisector of this line segment.

c. Write a class for Line, described by its slope and a point on the line, with opeations that find the point-slope equation of the line and find the slope-intercept of the line.

d. Write a program to read the point and slope information for two lines and to determine whether they intersect or are parallel. If they intersect, find the point of intersection and also determine whether they are perpendicular.

Reference no: EM13938600

Questions Cloud

Summarize the main purpose of the immigration act : Summarize the main purpose of The Immigration Act of 1924. State the primary focus of the U.S. antiterrorist policy today. Define "right-wing terrorists" and give an example. Distinguish between international terrorism and home-grown or home-land ter..
Based on the balance in retained earnings : Based on the balance in retained earnings, which of the two dividend plans is more restrictive on future cash dividends?
A program that accepts insurance policy data : A program that accepts insurance policy data, including a policy number, customer last name, customer first name, age, premium due date (month, day, and year), and number of driver accidents in the last three years. If an entered policy number is not..
Explain why even after large-scale blood loss : Ms. Palmer is brought to the emergency room after being stabbed during a mugging. She is hemorrhaging and has a rapid, thread pulse, but her blood pressure is within normal limits. What effect does a drop in blood volume have on blood pressure?
Write the equation of the perpendicular bisector : Write a program to read the point and slope information for two lines and to determine whether they intersect or are parallel. If they intersect, find the point of intersection and also determine whether they are perpendicular.
Statement to study health and social care management : ??I would like you to write about my personal statement to study health and social care management. I am biomedical science graduated (Bsc) and want to study master degree in health and social care management.
Kind of big data online or offline used for the business : Discuss in detail what kind of Big Data online or offline is being used for the business. How the organization of chose the right Big Data application for their business.
Why does the pain come in waves instead of being continuous : Ally awakens to extreme pain which radiates from her left abdomen to the groin area on the same side. It is not continuous pain, it recurs every 3-4 minutes. What is Ally's problem? What are some possible causes of this problem? Name at least two..
Find the constant c at the wing root : If the origin, o, is located at the wing tip and the leading & trailing edge curve is given above, find the constant c at the wing root and then calculate the chord of the wing at position 2 and position 3 as indicated in figure 1. (Marks Breakdow..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  The array is sorted except the first one

the array is sorted except the first one

  Define program testing & documentation

Devise a test plan carefully, making sure that the purpose of the particular test is clearly stated, the data for each test is specified (that is, any inputs expected from the user or the programmer), and a description of the expected result from ..

  Write a powershell script that contains cmdlets

Assignment : Write a PowerShell script that contains cmdlets (no aliases) that meets the following requirements: Create an script named xyz123_AD.ps1 that accomplished the following: Create user1_StudentID throughuser10_StudentID where StudentID is..

  Program that takes the purchase price of two item

Program that takes the purchase price of two items and compares the prices of those items under two different discounts (half-off the second item, and a percentage off both items (i.e. 10% off)).

  Summarizing your predicted and actual output

Write a statement summarizing your predicted and actual output, and identify and explain any differences. For your conclusions, write at least one nontrivial paragraph that explains, in detail, either a significant problem you had and how you solv..

  Convert code c to c++

I don't know where to start and how I should go about doing this and am looking for some advice - the code just has to compile in g++, it does not need to be completely rewritten in C++.

  What are c library functions gets and atoi

What are 'C' library functions gets and atoi and scanf used for and submit a flowchart or list of processing steps that can be used as a basis for the program.

  Write a function to compute the volume of a cone

write a function to compute the volume of a cone by using the base radius r and the height h of the cone as the parameters of the function Vcone = xr^2h/3

  How to declare c++

How to declare C++

  Create a program that prompts a user for her name

A. Given a = 5, b = 1, x = 10, and y = 5, create a program that outputs the result of the formula f = (a b)(x y) using a single printf() function. B. Create a program that uses the same formula above to output the result; this time.

  Modify the code to change the variables

Quickly modify the code to change the variables if needed to the correct data type. Comment the code and indicate what the line or function performs

  Computes the area of a rectangle

Create an object oriented application with C# that computes the area of a rectangle, and the area and the volume of a cuboid.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd