# OK to post homework # Alex Varjabedian, 10-Apr-2024, Homework 22 ######################## # -------------------- # # PART 2 - Tidal Force # # -------------------- # ######################## # We know that tidal force is proportional to M / d^3. Since the tidal force of the moon is stronger than that of the sun, we have # (M_MOON / d_MOON^3) / (M_SUN / d_SUN^3) > 1 # Also we know that d = R / t (derived using trigonometry), where R is the radius and t is the angle observed from Earth. Substituting, # (M_MOON / R_MOON^3) / (M_SUN / R_SUN^3) > 1 # The formula for volume is V = (4/3)*Pi*R^3, so # (M_MOON / V_MOON) / (M_SUN / V_SUN) > 1 # Finally, density = M / V, so # DENSITY_MOON / DENSITY_SUN > 1 # Therefore, DENSITY_MOON > DENSITY_SUN ############################ # ------------------------ # # PART 3 - Progress Report # # ------------------------ # ############################ print(`So far, we have created a function to generate anagrams given a database, and we have also added two databases. We still need to create the functionality to interface with the user properly.`);