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, 04.07.2019 18:10
Items are similar to the free issue items, but their access is limited. (clo5) a)-bin stock items free issue b)-bin stock controlled issue c)-critical or insurance spares d)-rebuildable spares e)-consumables
Answers: 1
question
Engineering, 04.07.2019 18:20
Steam enters a converging nozzle at 3.0 mpa and 500°c with a at 1.8 mpa. for a nozzle exit area of 32 cm2, determine the exit velocity, mass flow rate, and exit mach number if the nozzle: negligible velocity, and it exits (a) is isentropic (b) has an efficiency of 94 percent
Answers: 2
question
Engineering, 04.07.2019 18:20
How much power could a wind turbine produce if it had the following specifications? cp = 0.45 -d=1.2kg/m3 d=50m v 5m/s
Answers: 2
question
Engineering, 04.07.2019 19:10
Asteam is contained in a rigid tank with a volume of 1 m3. initially, the pressure and temperature are 7 bar and 500 oc, respectively. the temperature drops due to cooling process. determine: (1) the temperature at which condensation begins in °c, (2) the fraction of the total mass that has condensed when the pressure decreased to 0.5 bar. (3) the volume in m3 occupied by saturated liquid at the final state?
Answers: 3
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, 02.04.2020 05:00
question
Mathematics, 02.04.2020 05:00
Questions on the website: 13722367