5) The distance that light travels in one year is called a light year. Given tha
ID: 639489 • Letter: 5
Question
5) The distance that light travels in one year is called a light year. Given that light travels at a speed of 3 * 108 meters in one second. Determine and write an algorithm to calculate the distance of a light year.
6) Write a C program that calculates the distance of a light year for the problem in number 5. The relevant formula is distance = speed * time. (Hint: Make sure that the time corresponds to the number of seconds in one year. Use 365 days in a year.) Sample output:
The total distance light travels in one year is 10217664512.000000 meters.
Explanation / Answer
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.