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
Acertain flow of air (at stp) has a velocity distribution given by v i (in ft/s). if this flow is going through a 4 ft square area in the yz-plane (centered at the origin), what is the mass flow rate (in lbm/s)?
Answers: 2
question
Engineering, 04.07.2019 18:20
Along 8-cm diameter steam pipe whose external surface temperature is 900c connects two buildings. the pipe is exposed to ambient air at 70c with a wind speed of 50 km/hr blowing across the pipe. determine the heat loss from the pipe per unit length. (b) air at 500c enters a section of a rectangular duct (15 cm x 20 cm) at an average velocity of 7 m/s. if the walls of the duct are maintained at 100c. a) the length of the tube for an exit temperature of the air to be 40 0c. b)the rate of heat transfer from the air. c) the fan power needed to overcome the pressure drop in this section of the duct.
Answers: 1
question
Engineering, 04.07.2019 19:10
What are the major differences between injection molding and extrusion?
Answers: 2
question
Engineering, 04.07.2019 19:10
Ahelical coil spring has a mean diameter of 50 mm, a wire diameter of 5.5 mm and is wound with a pitch of 10 mm. the spring steel has an ultimate strength of 1250 mpa. find the force needed to compress the spring solid and the wire stress in this condition. state whether the spring will return to its initial length.
Answers: 1
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, 02.06.2021 09:40
question
Mathematics, 02.06.2021 09:40
question
English, 02.06.2021 09:40
Questions on the website: 13722367