

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Write a well-structured program (in FORTRAN), named Prog03.for, that reads values for the coefficients A, B, C, and D of the following two linear lines (functions), y = Ax + B y = Cx + D Then, determine whether the lines are parallel (their slopes are equal) or the lines intersect. If the lines intersect, determine if they are perpendicular (the product of their slopes is equal to B1). Terminate the execution of your program when the values of all coefficients, (A, B, C, and D), are the zero (0.0). [Note that this assignment is Programming Problem 3, pp. 173-174, modified.]
Due: 0 9 / 28 / 200 6 (Thr) CSCI 230 Assignment 03 Name:___________,_________ Fall-200 6 Linear Equations (Functions) (Last:spell) (First) Part I ( 4 0 points)
1 0.0 0.0 0.0 0.0 y = 0.0 y = 0.0 Parallel: Horizontal 2 0.0 0.0 0.0 not y = 0.0 y = D Parallel: Horizontal 3 0.0 0.0 not 0.0 y = 0.0 y = Cx Intersect at (0,0) 4 0.0 not 0.0 0.0 y = B y = 0.0 Parallel: Horizontal 5 not 0.0 0.0 0.0 y = Ax y = 0.0 Intersect at (0, 0) 6 0.0 0.0 not not y = 0.0 y = Cx + D Intersect at (-D/C,0) 7 0.0 not 0.0 not y = B y = D Parallel: Vertical or Horizontal? _______ 8 not 0.0 0.0 not y = Ax y = D Intersect at _________ 9 0.0 not not 0.0 y = B y = Cx Intersect at _________ 10 not 0.0 not 0.0 y = Ax y = Cx Parallel if __________ Perpendicular if __________ 11 not not 0.0 0.0 y = Ax + B y = 0.0 Intersect at _________ 12 0.0 not not not y = B y = Cx + D Intersect at _________ 13 not 0.0 not not y = Ax y = Cx + D Parallel if ________ Perpendicular if ________ 14 not not 0.0 not y = Ax + B y = D Parallel if _________ Perpendicular if __________ 15 not not not 0.0 y = Ax + B y = Cx Parallel if _________ Perpendicular if __________ 16 not not not not y = Ax + B y = Cx + D Parallel if _________ Perpendicular if _________ 2