To write a program which finds whether the three given points are collinear or not. If they are not collinear find the perimeter of
Explanation of Solution
Given:
The points A, B and C would be collinear if
Calculation:
The following is the required BASICProgram-
10 INPUT “Enter the x-coordinate of first point”:
20 INPUT “Enter the y-coordinate of first point”:
30 INPUT “Enter the x-coordinate of second point”:
40 INPUT “Enter the y-coordinate of second point”:
40 INPUT “Enter the x-coordinate of third point”:
50 INPUT “Enter the y-coordinate of third point”:
60LET
70 LET
80 LET
90 IF
100 PRINT “The points are Collinear”:
110 ELSE
120 LET
130 PRINT “The perimeter of triangle is”:
140 END.
DRY RUN of the program:-
INPUT:
Enter the x-coordinate of first point
Enter the y-coordinate of first point
Enter the x-coordinate of second point
Enter the y-coordinate of second point
Enter the x-coordinate of third point
Enter the y-coordinate of third point
OUTPUT:
The points are Collinear.
Chapter 9 Solutions
Algebra and Trigonometry: Structure and Method, Book 2
Additional Math Textbook Solutions
Introductory and Intermediate Algebra for College Students (5th Edition)
Algebra and Trigonometry (6th Edition)
College Algebra
College Algebra with Modeling & Visualization (5th Edition)
Elementary and Intermediate Algebra
A Graphical Approach to College Algebra (6th Edition)
- Algebra and Trigonometry (6th Edition)AlgebraISBN:9780134463216Author:Robert F. BlitzerPublisher:PEARSONContemporary Abstract AlgebraAlgebraISBN:9781305657960Author:Joseph GallianPublisher:Cengage LearningLinear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning
- Algebra And Trigonometry (11th Edition)AlgebraISBN:9780135163078Author:Michael SullivanPublisher:PEARSONIntroduction to Linear Algebra, Fifth EditionAlgebraISBN:9780980232776Author:Gilbert StrangPublisher:Wellesley-Cambridge PressCollege Algebra (Collegiate Math)AlgebraISBN:9780077836344Author:Julie Miller, Donna GerkenPublisher:McGraw-Hill Education