Create a point class to record and manipulate cartesian coordinates. The class s
ID: 3553077 • Letter: C
Question
Create a point class to record and manipulate cartesian coordinates. The class should have two properties, an X coordinate and a Y coordinate. Create a constructor which takes two arguments: the X coordinate and the Y coordinate. Create four methods. GetX - returns the X coordinate. GetY - returns the Y coordinate. DistanceBetween - returns the distance between two points. Slope - returns the slope between two points. Your class test program should create two point objects, then show the distance between them and the slope. Submit the class program, not the test program.Explanation / Answer
( Done exactly as you asked. :) )Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.