Question: Write a program that generates three random points on a circle centered at (0, 0) with radius 40 and displays three angles in a triangle
Write a program that generates three random points on a circle centered at (0, 0) with radius 40 and displays three angles in a triangle formed by these three points, as shown in Figure 4.4a. Display the angles in degrees.

x = rX cos(a) and y = r X sin(a) 0 o'clock position P2 (x, y) 60 P30 O P1 65 (0, 0) 55 P4 P5 () (b) ()
Step by Step Solution
3.57 Rating (161 Votes )
There are 3 Steps involved in it
public class Exercise0406 public static void mainString args double r 40 SystemoutprintlnThree rand... View full answer
Get step-by-step solutions from verified subject matter experts
