Question
2 Question 2 The table below summarizes three commonly used mathematical models of nonvertical straight lines. Mode Equation Given Two-point form m = y2y1 x2x1
2 Question 2 The table below summarizes three commonly used mathematical models of nonvertical straight lines. Mode Equation Given Two-point form m = y2y1 x2x1 (x1, y1),(x2, y2) Point-slope form yy1 = m(xx1) m,(x1, y1) Slope-intercept form y = mx + b m, b Design and implement a program that permits the user to convert either two-point form or point-slope form into slope-intercept form. Your program should interact with the user as follows: Select the form that you would like to convert to slope-intercept form: 1) Two-point form (you know two points on the line) 2) Point-slope form (you know the lines slope and one point) => 2 Enter the slope=> 4.2 Enter the x-y coordinates of the point separated by a space => 1 1 Point-slope form y - 1.00 = 4.20(x - 1. 00) Slope-intercept form y = 4.20x - 3.20 Do another conversion (Y or N) => Y Select the form that you would like to convert to slope-intercept form: 1) Two-point form (you know two points on the line) 2) Point-slope form (you know the lines slope and one point) => 1 Enter the x-y coordinates of the first point separated by a space=> 4 3 1 Enter the x-y coordinates of the second point separated by a space=> -2 1 Two-point form m = (1.00 - 3.00)/(-2.00 - 4.00) Slope-intercept form y=0.33x+1.66 Do another conversion (Y or N) => N Implement the following functions: get problem - Displays the user menu, then inputs and returns as the function value the problem number selected. get2 pt - Prompts the user for the x-y coordinates of both points, inputs the four coordinates, and returns them to the calling function through output parameters. get pt slope - Prompts the user for the slope and x-y coordinates of the point, inputs the three values, and returns them to the calling function through output parameters. slope intcpt from2 pt - Takes four input parameters, the x-y coordinates of two points, and returns through output parameters the slope (m) and y-intercept (b). intcpt from pt slope- Takes three input parameters, the x-y coordinates of one point and the slope, and returns as the function value the y-intercept. display2 pt-Takes four input parameters, the x-y coordinates of two points, and displays the two-point line equation with a heading. display pt slope- Takes three input parameters, the x-y coordinates of one point and the slope, and displays the point-slope line equation with a heading. display slope intcpt - Takes two input parameters, the slope and y- intercept, and displays the slope-intercept line equation with a heading. IN C WITH COMMENTS USING POINTERS
Apps Downned hype here to search pid C Chege Study C ch 95 Stad CIS 2 Question 2 The table below monly used 1uuatl atial ulodels straight lines. Me Equa Given Two-point fa Point-slope form yaya n point for that peruuita the vert eitlier point slop into slope intercept forun. Yo should interact ith the pro follow. Seleel the for ld like to couvert Hlugue-intercept for 1) Two-point futur (you know two points ou the line 2) Point slope form you know the line's slope and one point) Later the slopeT> 1.2 Enter the coordinates of the point parated by a sp Point slope form 4.20( Skpe-intercept form 3.20 NY Y Select the form that you ntercept form: to slop 1) Two-point form (you know two points on the line) 2) Point shop pe fo you know the line's slope and Enter the x y coordinates of the first point scparated by a space- 3 coordinates of the m (1.00 3.00)/ 2.00-400) (t' or N) N Apps Downned hype here to search pid C Chege Study C ch 95 Stad CIS 2 Question 2 The table below monly used 1uuatl atial ulodels straight lines. Me Equa Given Two-point fa Point-slope form yaya n point for that peruuita the vert eitlier point slop into slope intercept forun. Yo should interact ith the pro follow. Seleel the for ld like to couvert Hlugue-intercept for 1) Two-point futur (you know two points ou the line 2) Point slope form you know the line's slope and one point) Later the slopeT> 1.2 Enter the coordinates of the point parated by a sp Point slope form 4.20( Skpe-intercept form 3.20 NY Y Select the form that you ntercept form: to slop 1) Two-point form (you know two points on the line) 2) Point shop pe fo you know the line's slope and Enter the x y coordinates of the first point scparated by a space- 3 coordinates of the m (1.00 3.00)/ 2.00-400) (t' or N) NStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started