Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in C language DESCRIPTION Caution: Do not share/post any course materials/coding problems anywhere Atsa, note that sharing part of your code to others, sharing in

in C language image text in transcribed
DESCRIPTION Caution: Do not share/post any course materials/coding problems anywhere Atsa, note that sharing part of your code to others, sharing in cher, etc. are also not allowed. Please read the cheating party in the syllabus Problem SomeLine? Write a program that takes three points (x1, VII. (x2, y2) and Ix5, V3] as input and check it all the three points fall on one straight line. Penseuse front data types for all the points. Hint Artist calculate me skee of the straight unes connecting no points Then calcune the spear ne stage dnes connecting me first and third points both of the stops are me same, trenar me porosit on one stage ane Here is the tomuto to calculate the stopeters say the points are 10.77 and 12,8% slop G-05-10) Sample input/output the numbers are part of input Enter coordinates IL VI 552J Enter coordinates X2.21 5.6 2.4 Enter coordinates x3 31 6735 They do not tal on one straight line Sample input/output the numbers are part of input Enter coordinatest VII 1122 Enter coordinates 2.2 2244 Enter coordinates Ix3 3 4488 Theyat on one straight Some important notes As you might be calculating two slopes, due to the ting point representation very hen you might not get an ac mach, even they are very close 5o. comparing two moting port number for at is not a good approach in general if the differences between these numbers are within the weather areas problem, it the absolute value of the differences between the opere 000000L we will consider them eva You can use the fabufunction of math by to calculate the value a long point number son Your son of this code, you will need to call me function with the erences between meccsnamen decide they fat in same in or not based on the threshold mentioned above Don't forget to use the following command to comple Your Comment as you are using mot bry gee main.c.im An example of using fab wincludes include math mand float xl-5.000L2-50003 Output of the above cumple codes

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 International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

=+designing international assignment C&B packages.

Answered: 1 week ago