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
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
question
Engineering, 04.07.2019 03:10
What precautions should you take to prevent injuries when dealing with heavy loads?
Answers: 1
question
Engineering, 04.07.2019 18:10
For the closed feedwater heater below, feedwater enters state 3 at a pressure of 2000 psia and temperature of 420 °f at a rate of ix10 ibhr. the feedwat extracted steam enters state 1 at a pressure of 1000 psia and enthalpy of 1500 btu/lbm. the extracted er leaves at an enthalpy of 528.7 btu/lbm steam leaves as a saturated liquid. (16) a) determine the mass flow rate of the extraction steam used to heat the feedwater (10) b) determine the terminal temperature difference of the closed feedwater heater
Answers: 3
question
Engineering, 04.07.2019 18:10
The thermal expansion or contraction of a given metal is a function of the f a)-density b)-initial temperature c)- temperature difference d)- linear coefficient of thermal expansion e)- final temperature f)- original length
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
Mathematics, 27.10.2021 01:50
question
Social Studies, 27.10.2021 01:50
question
Mathematics, 27.10.2021 01:50
question
Mathematics, 27.10.2021 01:50
question
Chemistry, 27.10.2021 01:50
question
History, 27.10.2021 02:00
Questions on the website: 13722362