- make the class have 3 private variables x, y, and z with the distance method generalized to 3 dimensions. generalize t

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

- make the class have 3 private variables x, y, and z with the distance method generalized to 3 dimensions. generalize t

Post by answerhappygod »

- make the class have 3 private variables x, y, and z with the distance method generalized to 3 dimensions. generalize the distance method of this class Point to class Point3D.
- use the class Point3D to insrantiate 3 points in 3D space. point 1 should be i unit vecor. point 2 should be j unit vector. point 3 should be k unit vector. The 3 points P1, P2, P3 are objects of class Point3D and form a triangle in 3D space. CALCULATE the 3 sides of the triangle.
-Sides P1P2, P2P3, and P3P1 should be calculated using the C# program.
-using this calculation, find what kind of triangle we get: acute, right, obtuse, isosceles, etc.
I have included an image that contains sums up part A through Part C to accomplish. thank you
Make The Class Have 3 Private Variables X Y And Z With The Distance Method Generalized To 3 Dimensions Generalize T 1
Make The Class Have 3 Private Variables X Y And Z With The Distance Method Generalized To 3 Dimensions Generalize T 1 (51.62 KiB) Viewed 17 times
(a) (8%) Make a new class Point3D (for 3 dimensions) that has three private variables x, y, and z with the distance method generalized to 3 dimensions. Generalize the distance method of class Point to class Point3D (b) (12+%) Now use Point3D to instantiate three points in the 3D space, P1 (1, 0, 0), P2 (0, 1.0), and P3 (0. 0, 1) (these are normally referred to as i, j, and k unit vectors in the x, y, and z directions in Physics). The 3 points P1, P2, and P3 are objects of class Point3D and they form a triangle in the 3 dimensional space. Calculate the three sides of this triangle: PIP2, P2P3, and P3P1 using your C# program. (NOT by hand). What are they? Show as answer of this part (with outputs from your program). What kind of triangle do you have now, acute, right, or obtuse, isosceles, etc" (c) (10%+) Consider a different triangle formed by O (0, 0, 0), P1, and P2 from part (b). Repeat part (b) for this, i.e.. compute programmatically the 3 sides of this new triangle OPIP2 What kind of triangle do you have now, acute, right, or obtuse, isosceles, etc?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply