142k views
12 votes
Find the circumference of the circle

A. 47.1 in
B. 22 in
C. 10.5 in
D. 35 in

Find the circumference of the circle A. 47.1 in B. 22 in C. 10.5 in D. 35 in-example-1
User Madcyree
by
6.0k points

1 Answer

9 votes

Answer:

A 47.1 in

Explanation:

This is a pretty simple Java (though probably applicable to all programming) question:

Math. Random() returns a number between zero and one.

If I want to return an integer between zero and hundred, I will do:

(int) Math. Floor(Math. Random() * 101)

Between one and hundred, I would do:

(int) Math. Ceil(Math. Random() * 100)

But what if I wanted to get a number between three and five? Will it be like following statement:

User Kerrianne
by
6.3k points