Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use python, please! Light travels at 299792.458 kilometers / second in a vacuum. Write a program that converts this value into the following: Speed of
use python, please!
Light travels at 299792.458 kilometers / second in a vacuum. Write a program that converts this value into the following: Speed of light in miles / second (1.0 kilometer = 0.621 miles) Half of the speed of light in miles / second Quarter of the speed of light in miles / second The speed at which the Earth moves around the Sun (66,600 miles per hour) converted to kilometers / second The speed at which the Earth moves around the Sun expressed as a percentage of the speed of light Here's a sample running of your program. Note that you can only use THREE numeric literals in this program (speed of light in kph (299,792.458), the conversion rate between kilometers and miles (0.621) and the speed at which the Earth moves around the sun (66,600)). All other values must be calculated! Match the formatting of the output below exactly. Speed of light (Kilometers / sec): 299792.458 kps Speed of light (Miles / sec): 186171.116418 mps Half speed of light (Miles / sec): 93085.558209 mps Quarter speed of light (Miles / sec): 46542.7791045 mps The earth moves 66,600 miles / hour around the sun 66,600 miles per hour is equal to: 29.790660225442835 kps 66,600 miles per hour is equal to: 9.937094623455416e-05 % of the speed of light Comment your source code and describe your code to someone who may be viewing it for the first timeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started