Java Practice It | Self-Check 8.16 PointClient | classes, object, points

preview_player
Показать описание
More practice its:

Problem:

Question:
The PointClient program is supposed to construct two Point objects, translate each, and then print their coordinates. The expected output is shown below. Finish the program so that it runs properly.

p1 is (8, 2)
p2 is (4, 3)
p1's distance from origin is 8.246211251235321
p1 is now (9, 4)
p2 is now (3, 13)
Рекомендации по теме