Question

Ex-23. Construct three different programs (IPO diagram, pseudocode, flowchart) to compute the equation of a line expressed as
0 0
Add a comment Improve this question Transcribed image text
Answer #1

ANSWER (A)

IPO DIAGRAM

PROCESS INPUT OUTPUT m (y2 -y1)/(x2 -x1) by1 m*(O - x1) x1, y1, x2, y2

PSEUDOCODE

1. START
2. Input x1, y1, x2 and y2
3. m = (y2 - y1)/(x2 - x1)
4. b = y1 + m*(0 - x1)
5. y = m*x + b
6. Output y
7. END

FLOWCHART

START Input x1, y1, x2, y2 m (y2 -y1)/(x2 - x1) Output y END

ANSWER (B)

IPO DIAGRAMINPUT PROCESS OUTPUT x1, y1, and b
PSEUDOCODE

1. START
2. Input x1, y1 and b
3. m = (y1 - b)/x1
4. y = m*x + b
5. Output y
6. END




FLOWCHART

START Input x1, y1, and b Output y END

ANSWER (C)

IPO DIAGRAMINPUT PROCESS OUTPUT m and b
PSEUDOCODE

1. START
2. Input m and b
3. y = m*x + b
4. Output y
5. END

FLOWCHART

START Input m and b y m*x + b Output y END

 
Add a comment
Know the answer?
Add Answer to:
Ex-23. Construct three different programs (IPO diagram, pseudocode, flowchart) to compute the equation of a line...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Hello, could someone please create me this MATLAB program GUI: - An example of the output...

    Hello, could someone please create me this MATLAB program GUI: - An example of the output is on the bottom *Please also generate a graph of the Equation y=mx+b upon pressing Calculate* Thank you Online calculator to find slope, length/distance, angle and equation of a line segment for entered the coordinates (X1, y1), (X2, y2) of two points, using following formula : m = (y2-71)/(x2-x1) and Distance = V((x2-x1)2 + (y2-71)2) Angle = arctan (m) and Line of Equation is...

  • Find the equation of the line using the point-slopa formula. Write the final aquation using the...

    Find the equation of the line using the point-slopa formula. Write the final aquation using the slope-intercopt form the x-intercept is 1, and (x, y) (-2, 3) is a point on the line Recall that the point-slope formula for a line is of the form - yi - m(x-x1). What are the coordinates of the point for the givenx-intercept? Can the slope of the line be found using the two points? What variab be solvad for in order to convert...

  • I need help writing the step by step directions (algorithm) for the following C++ code. ex....

    I need help writing the step by step directions (algorithm) for the following C++ code. ex. what would be input, output, and inbetween. No computer code! Many properties in engineering and science can be analyzed by trying to fit a straight line which uses x as the independent variable and y as the dependent variable. Suppose you have an array of x values and a corresponding array of y values. Write the process to fit a straight line to the...

  • Please answer the two question 1. Write the equation of a line with the slope, 3/4,...

    Please answer the two question 1. Write the equation of a line with the slope, 3/4, which passes through the point (5,−4). Write the answer in slope-intercept form. 2.  Find the equation of the line that contains the point (23,36) and is parallel to the x-axis. Write the equation in the form y=mx+b and identify m and b

  • Procedure Use the following sets of data and work with each one. The equation for a...

    Procedure Use the following sets of data and work with each one. The equation for a linear graph is y mx+b, where m is the slope and b is the y-intercept. DATA SET 1: Fahrenheit-vs- Celsius Fahrenheit Celsius 32 68 104 140 176 0 20 40 60 80 1. Using Data Set 1 above, graph Fahrenheit (y) -vs- Celsius (x), using the scatterplot function in excel, or another graphing software. Make sure you label the axes. Fahrenheit should be on...

  • --> Econ Graph Review a) The equation of the line passing through the points (5, 1)...

    --> Econ Graph Review a) The equation of the line passing through the points (5, 1) and (8, 2) is ay = x + b. Find the values for constants a and b. Represent this function in a xy plane. b) Let L be the line passing through the point (4, 9) with slope 3/4. Represent this function using the y = mx + b formula. Find the y-intercept of L. c) Graph the following two equations on the same...

  • 4) Given the equation: y = 1.55 x +7 a) Find the slope of the line....

    4) Given the equation: y = 1.55 x +7 a) Find the slope of the line. b) Find the y-intercept. c) Find two points on the line where x = 3 and y = -7 5) Given the equation y = - 4x, +0.75x + 2 a) Find y on the line where xy = 9 and again where x2 = -6 b) Find the new value of y when x1 = 4 while X2 is held constant at -7....

  • Problem 4: (a) (5 points) Find the equation for the line that passes through the points...

    Problem 4: (a) (5 points) Find the equation for the line that passes through the points (-4,-2) and (8, 1). Write your equation in se form, slope-intercept form, or point- slope form. (Extra Credit: Write the equation for the line in all three forms) (b) (5 points) Graph the line. Problem 5: (10 points) Find the equation for the line passing through the point (3.2) and perpendicular to the line y = ',x + 7. The the line Problem 6:...

  • Find the equation of the regression line for the given data. Then construct a scatter plot...

    Find the equation of the regression line for the given data. Then construct a scatter plot of the data and draw the regression line (The pair of variables have a significant correlation) Then use the regression equation to predict the value of y for each of the given x-values, if meaninglul. The number of hours 6 students spent for a test and their scores on that test are shown below irs 6 students spent spent studyingx (a) x 2 hours...

  • 1) Find an equation of the line that contains the following pair of points. (4,1) and...

    1) Find an equation of the line that contains the following pair of points. (4,1) and (1,3) (Simplify your answer. Use integers or fractions for any numbers in the equation. Type your answer in slope-intercept form. Do not factor.) 2) Find an equation of the line in the form ax+by=c whose x-intercept is −6 and y-intercept is −2 , where a, b, and c are integers with no factor common to all three, an a≥0.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT