Question: TASK Using the Python interactive shell, calculate the answer to each of the following six problems. HINT: Using variables may be convenient for some of
TASK Using the Python interactive shell, calculate the answer to each of the following six problems. HINT: Using variables may be convenient for some of these calculations and remember to use truncated division where appropriate.
1. How many seconds are there in a year (assuming a normal 365 day year).
2. The earth is 149,600,000 kilometers (km) from the sun. Pluto is 5,945,900,000 km from the sun. Calculate how many more times Pluto is away from the sun than the earth.
3. The diameter of the earth is 12,750 km. The diameter of Jupiter is 142,800 km. Calculate how many complete earths can be placed across Jupiter.
4. Light travels at about 300,000 km per second. Pluto at its closest to earth is 4,284,726,912 km from earth. Calculate how many seconds does it take for light from Pluto to reach the earth.
5. The Empire State Building has a roof height of 1250 feet. Calculate how much time it would take in seconds for the light from a flashlight at the top of the building to reach the ground. (Note that 1 kilometer equals 3,280.8399 feet.)
6. Calculate the value of the binary number 1001001110110001.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
