The speed of light in a vacuum is 299,792,458 meters/second. Thats an exact numbernot just an approximationbecause

Question:

The speed of light in a vacuum is 299,792,458 meters/second. That’s an exact number—not just an approximation—because the definition of a meter is based on the speed of light. Because it’s an exact number you can store it in an integer. An int has 32 bits and a long has 64 bits. To know whether you can store the speed of light value in an int or a long, provide a Java statement that calculates the number of bits needed to store the speed of light (299,792,458) and assign that value into a variable named numOfBits.
The number of bits in a number x equals loge(x) / loge(2). The subscripted e is for natural logarithms. Thus, you’ll want to use the Math class’s natural log method.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: