subject
Engineering, 30.11.2019 05:31 harshakayla02

The equation of a line in standard form is ax + by = c, wherein both a and b cannot be zero, and a, b, and c are real numbers. if b ≠ 0, then −a/b is the slope of the line. if a = 0, then it is a horizontal line, and if b = 0, then it is a vertical line. the slope of a vertical line is undefined. two lines are parallel if they have the same slope or both are vertical lines. two lines are perpendicular if either one of the lines is horizontal and the other is vertical or the product of their slopes is −1. design the class linetype to store a line. to store a line, you need to store the values of a (coefficient of x), b (coefficient of y), and c. your class must contain the following operations. a. if a line is nonvertical, then determine its slope. b. determine if two lines are equal. (two lines a1x + b1y = c1 and a2x + b2y = c2 are equal if either a1 = a2, b1 = b2, and c1 = c2 or a1 = ka2, b1 = kb2, and c1 = kc2 for some real number k.) c. determine if two lines are parallel. d. determine if two lines are perpendicular. e. if two lines are not parallel, then find the point of intersection. add appropriate constructors to initialize variables of linetype. also write a program to test your class.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:20
Determine the damped natural frequencies and the steady state response of a decoupled damped forced two degrees of freedom system. 10ä1 + 2q1 20q1 10 cos t; 10q2 +4q2 + 40q2 10 cos t
Answers: 3
question
Engineering, 04.07.2019 18:20
A3-mm-thick panel of aluminum alloy (k 177 w/m-k, c 875 j/kg-k and ? = 2770 kg/m) is finished on both sides with an epoxy coating that must be cured at or above t,-150°c for at least 5 min. the production line for the curing operation involves two steps: (1) heating in a large oven with air at ts,0-175°c and a convection coefficient of h, 40 w/m2. k, and (2) cooling in a large chamber with air at 25°c and a con- vection coefficient of he 10 w/m2.k. the heating portion of the process is conducted over a time interval te which exceeds the ime required to reach 150°c by 5 min (h = r + 300 s). the coating has an emissivity of ? = 0.8, and the temperatures of the oven and chamber walls are 175 and 25°c, respectively. if the panel is placed in the oven at an initial temperature of 25°c and removed from the chamber at a safe-to-touch tempera ture of 37°c, what is the total elapsed time for the two-step curing operation?
Answers: 3
question
Engineering, 04.07.2019 19:10
Agas is compressed from vi 0.3 m, p 1 bar to of v2 0.1 m3, p2--3 bar. pressure and volume are related linearly during the process. for the gas, find the work, in kj.
Answers: 2
question
Engineering, 06.07.2019 03:20
Asimply supported beam abc of length l has ab of length hl and second moment of area / and bc of length hl and second moment of area i2. determine the strain energy stored in the beam when it is subject to a vertical load f at its midpoint and the consequential central deflection.
Answers: 2
You know the right answer?
The equation of a line in standard form is ax + by = c, wherein both a and b cannot be zero, and a,...
Questions
question
Mathematics, 18.03.2021 03:00
question
Mathematics, 18.03.2021 03:00
question
Mathematics, 18.03.2021 03:00
question
Mathematics, 18.03.2021 03:00
question
Business, 18.03.2021 03:00
Questions on the website: 13722361