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
A2-m rigid tank initially contains saturated water vapor at 100 kpa. the tank is connected to a supply line through a valve. steam is flowing in the supply line at 600 kpa and 300 c. the valve is opened, and steam is allowed to enter the tank until the pressure in the tank reaches the line pressure, at which point the valve is closed. a thermometer placed in the tank indicates that the temperature at the final state is 200°c. determine (a) the mass of steam that has entered the tank (b) the amount of heat transfer.
Answers: 3
question
Engineering, 04.07.2019 19:10
For a process taking place in a closed system containing gas, the volume and pressure relationship is pvi-constant. -1.5 bar, the process starts with initial conditions, pi = =0.03 m3 and ends with final volume, v2-0.05 m3 determine the work done by the gas.
Answers: 2
question
Engineering, 04.07.2019 19:20
Liquid flows at steady state at a rate of 2 lb/'s through a pump, which operates to raise the elevation of the liquid 100 ft from control volume inlet to exit. the liquid specific enthalpy at the inlet is 40.09 btu/lb and at the exit is 40.94 btub. the pump requires 3 btu/s of power to operate. if kinetic energy effects are negligible and gravitational acceleration is 32.174 tt/s, the heat transfer rate associated with this steady state process is most closely 1)-2,02 btu/s from the liquid to the surroundings 2)-3.98 btu/s from the surroundings to the liquid. 3)-4.96 btu/s from the surroundings to the liquid. 4)-1.04 btu/s from the liquid to the surroundings.
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
Questions on the website: 13722367