Question: Write a program that generates three random points on a circle centered at (0, 0) with radius 40 and display three angles in a triangle
Write a program that generates three random points on a circle centered at (0, 0) with radius 40 and display three angles in a triangle formed by these three points, as shown in Figure 4.7a.?
(a) A triangle is formed from three random points on the circle.?

(b) A random point on the circle can be generated using a random angle a.

60 65 55 (a) x=rxcos(a) and y =rxsin(a) (, ) (b)
Step by Step Solution
3.38 Rating (160 Votes )
There are 3 Steps involved in it
Program Plan Create a class called RandomPointOnACircle Initialize the main method with variables r angle x y as double Display three random points To ... View full answer
Get step-by-step solutions from verified subject matter experts
