Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 4 Not yet answered Marked out of 10.00 Flag question It is known that any straight line passes through two points: Point1 is (X1,Y1)

image text in transcribedimage text in transcribed

Question 4 Not yet answered Marked out of 10.00 Flag question It is known that any straight line passes through two points: Point1 is (X1,Y1) and Point2 is (X2,y2). Given that the length and the shape of a line is determined as: Length = V(x1 - x2)2 + (y1 - y2) Shape: it is one of the four following shapes... "Horizontal Line" Vertical Line" Diagonal Line" "Point - not a line" (x1,y) 1 (x1,y) (x1,71) (x1,71) (x2,y2) (x2,y) Same y-values but Same x-values but Different x-values and Same x-values and different x-values different y-values different y-values same y-values Write a program that calculates and prints the length and shape of the line, according to the two points entered by the user. Tip: use the built-in PHP function sqrt(n) to get the square root. i.e. sqrt(9) = 19 Input e3 Line Info C O localhost:8080/Prog2- C O O localhost:8080/ Enter (x,y) values for the two points: Line Length: 5 cm First Point Second Point x2: 12 Line Shape: Diagonal line yl: 15 y2: 18 Print Info Given: HTML Input Form (copy and paste it into your editor) Print Info Given: HTML Input Form (copy and paste it into your editor) Input

Enter (x,y) values for the two points:

First PointSecond Point
x1: x2:
1 y2:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

LO 6-2 How does the endocrine system aff ect behavior?

Answered: 1 week ago

Question

Understand how arbitrators are credentialed and selected

Answered: 1 week ago