Question: Suppose a pentagon is centered at (0, 0) with one point at the 0 o?clock position, as shown in Figure 4.7c. Write a program that

Suppose a pentagon is centered at (0, 0) with one point at the 0 o?clock position, as shown in Figure 4.7c. Write a program that prompts the user to enter the radius of the bounding circle of a pentagon and displays the coordinates of the five corner points on the pentagon. Here is a sample run:

Oo'clock position P2 (0, 0) Ps P4 (c) Enter the radius of

Oo'clock position P2 (0, 0) Ps P4 (c) Enter the radius of the bounding circle: 100 |JEnter The coordinates of five points on the pentagon are (95.1057, 30.9017) (0.000132679, 100) (-95.1056, 30.9019) (-58.7788, -80.9015) (58.7782, -80.902)

Step by Step Solution

3.32 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Consider the above pentagon inscribed in a circle with vertex B at 0 oclock position ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming Questions!