Question: The key to orbital resonance using the chosen rendering software is the coprimality of the orbit times of each pair of planetary bodies in the
The key to orbital resonance using the chosen rendering software is the coprimality of the orbit times of each pair of
planetary bodies in the system. To simplify things, you only need to consider one large body and several small
bodies and calculate the resonant frequencies relative to the large body. That is in their reduced form, the orbit times
should not have a common factor. You decide to write a C program to get the orbit times from the design team
and then reduce them to their resonant frequencies to feed it to the rendering software. Please make sure your program
conforms to the following requirements.
Call this program orbits.cpp
Accept the orbit time of the large planetary body from the user. points
Accept the number of small planetary bodies from the user. points
For each small planetary body, accept the orbital time. If this time and the orbital time of the large planetary
body have a common factor, divide by that common factor. points
Print the final resonant frequency for each pair of planetary bodies. points
Document your program with comments. points
You are only allowed the iostream library.
The values entered will never be or negative.
We are aware that this breaks the laws of physics in several ways, but rendering is an illusionary process, and the
point its to give you a semiinteresting story while you practice loops. Please do not question the physics described
here. It is not real
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
