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 2 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.
1. Call this program orbits.cpp
2. Accept the orbit time of the large planetary body from the user. (5 points)
3. Accept the number of small planetary bodies from the user. (5 points)
4. 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. (30 points)
5. Print the final resonant frequency for each pair of planetary bodies. (5 points)
6. Document your program with comments.(5 points)
7. You are only allowed the iostream library.
8. The values entered will never be 0 or negative.
9. 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 semi-interesting 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 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!