Computers and Technology

Write a program that reads from the user any three points in two dimensional space: x1, y1, x2, y2, x3, y3. assume these points form a line segment, (x1, y1) to (x2, y2) to (x3, y3). calculate the sum of these line segments and print value to two decimal places. for example with points (0.0, 0.0), (3.0, 4.0), (6.0, 8.0), the distance for the first segment is 5.0, the second segment is 5.0, so the output for this case would be 10.00. the input and output for this case would be: input: 0.0 0.03.0 4.06.0 8.0output: 10.00

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 20:50, solo4360
What does operator overloading allow you to do?
Answers: 2
image
Computers and Technology, 22.06.2019 01:30, Daud2020
What kind of motivation is katrina showing? use the drop-down menu to complete the statement. katrina is using motivation because she is personally interested in learning more.
Answers: 2
image
Computers and Technology, 22.06.2019 04:30, kkeith121p6ujlt
Eye injuries usually occur as a result of all of the following things, except: a) proper machine operation b) battery explosion c) falling or flying debris d) electric welding arc
Answers: 2
image
Computers and Technology, 22.06.2019 10:20, alcantar28eduin
Print "usernum1 is negative." if usernum1 is less than 0. end with newline. convert usernum2 to 0 if usernum2 is greater than 10. otherwise, print "usernum2 is less than or equal to 10.". end with newline
Answers: 3
Do you know the correct answer?
Write a program that reads from the user any three points in two dimensional space: x1, y1, x2, y2,...

Questions in other subjects: