subject
Engineering, 27.11.2019 00:31 jelopez4

In function main declare coordinates for two points (x1, y1, x2, y2) and slope m and y-intercept b. call a function get2points to read in the two sets of coordinates. return the values to function main, pass by address(i. e. use pointers to send all four values back to main). call a second function slope intercept to calculate the values of slope m and intercept b for the form y=mx+b. function slope intercept has six parameters, the four coordinate values and pointers to the slope and y-intercept. slope intercept should return slope and y-intercept to main using pointers. from main, print the final form of the equation. the function should not return any value to main using a return statement.

enclose the call statements in a while or loop so that additional coordinates can be converted to the slope intercept format if desired. (ask the user to enter a y if they want to enter more coordinate pairs)
test with coordinate pairs: (4,3) and (-2,1)
(1.1) and (5,17.8)

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Line joining liquid phase with liquid and solid phase mixture is known as: a) liquidus b) solidus c) tie line d) none of the mentioned
Answers: 2
question
Engineering, 04.07.2019 18:10
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
question
Engineering, 04.07.2019 18:10
Coiled springs ought to be very strong and stiff. si3n4 is a strong, stiff material. would you select this material for a spring? explain.
Answers: 2
question
Engineering, 04.07.2019 18:10
Assuming compressible flow of air and that the measurements are done at flagstaff a pitot static tube that gives the difference of total and static pressure measures 0.35 m of mercury. what is the velocity of air? assume the temperature to be 300k. (submit your excel or matlab calculation sheet)
Answers: 1
You know the right answer?
In function main declare coordinates for two points (x1, y1, x2, y2) and slope m and y-intercept b....
Questions
question
Mathematics, 01.12.2020 21:10
question
Mathematics, 01.12.2020 21:10
question
Mathematics, 01.12.2020 21:10
question
Arts, 01.12.2020 21:10
Questions on the website: 13722367