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
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
question
Engineering, 04.07.2019 08:10
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
question
Engineering, 04.07.2019 18:10
Give heat transfer applications for the following, (i) gas turbines (propulsion) ) gas turbines (power generation). (iii) steam turbines. (iv) combined heat and power (chp). (v) automotive engines
Answers: 1
question
Engineering, 04.07.2019 18:10
An ideal otto cycle with air as the working fluid has a compression ratio of 8. the minimum and maximum temperatures in the cycle are 300 k and 1340 k. use constant specific heats at room temperature to determine (a) the amount of heat transferred to the air during the heat- addition kj/kg, (b) the thermal efficiency, and (c) the thermal efficiency of a carnot cycle ope limits. process, in rating between the same temperature
Answers: 2
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
Biology, 26.07.2019 10:30