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)
Answers: 2
Engineering, 04.07.2019 18:10
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
Answers: 2
Engineering, 04.07.2019 18:20
Modern high speed trains do not have perpendicular expansion gaps where rails are joined end-to-end any more they are mostly welded together but what might happen if there was a spell of particularly hot weather that causes inspection of the tracks?
Answers: 1
Engineering, 04.07.2019 19:10
What is the chief metrological difference between measuring with a microscope and with an electronic comparator? a. the microscope is limited to small workpieces.a. the microscope is limited to small workpieces. c. the comparator can only examine one point on the workpiece. d. the microscope carries its own standard.
Answers: 1
Engineering, 04.07.2019 19:20
Air at a pressure of 1atm and a temperature of 40 c is in parallel flow over the top surface of a flat plate that is heated to a uniform temperature of 120 c. the plate has a length of 0.40m (in the flow direction) and a width of 0.15m. the reynolds number based on the plate length is 50, 000. what is the rate of heat transfer from the plate to the air? if the free stream velocity of the air is doubled and the pressure is increased to 10 atm what is the rate of heat transfer?
Answers: 2
In function main declare coordinates for two points (x1, y1, x2, y2) and slope m and y-intercept b....
English, 31.05.2020 22:59
History, 31.05.2020 22:59
Chemistry, 31.05.2020 22:59
Mathematics, 31.05.2020 22:59
History, 31.05.2020 22:59
Business, 31.05.2020 22:59
Mathematics, 31.05.2020 22:59
History, 31.05.2020 22:59
History, 31.05.2020 22:59
Computers and Technology, 31.05.2020 22:59
Mathematics, 31.05.2020 22:59