subject

Write code which takes two inputs from the user, a number of sides followed by a side length, then creates a regular polygon with that number of sides and side length. Sample run:

Type the number of sides:

8

Type a side length:

7.5

regular octagon with side length 7.5

Hint: Make sure you use the right data types when taking user input.

To reference the documentation for the RegularPolygon class

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 14:00, ava5015
What is html ? give a small description about html
Answers: 2
image
Computers and Technology, 23.06.2019 18:00, larry5007
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
image
Computers and Technology, 24.06.2019 11:30, AnwarWeirdLol8811
Why is body language an important factor in a business meeting
Answers: 1
image
Computers and Technology, 24.06.2019 13:00, ddaaaeeee2960
Which one of the following functions is not available on the autosum tool? sum average if max
Answers: 3
You know the right answer?
Write code which takes two inputs from the user, a number of sides followed by a side length, then c...

Questions in other subjects:

Konu
Biology, 18.10.2019 00:30