Question: Exercise 1 : Special Relativity In special relativity, an object that has length L centimeters when at rest with respect to the observer has a

Exercise 1: Special Relativity
In special relativity, an object that has length L centimeters when at rest with respect to the observer has a relativistic length of LR centimeters when traveling at velocity v away from the observer.
LR=L1-v2/c2
Here, c is the speed of light, approximately 3\times 1010 cm/sec.
Write a program in c++ that will calculate and display the relativistic length LR of an object of rest length L that is traveling at velocity v. In your program:
Use type double for L, v, c, and LR.
Initialize c to 3\times 1010 cm/sec.
Have the user input values for L and v.
Include the file cmath so you can use the sqrt() function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!