Retired

The Rings of Saturn (retired)

12 of 15dinglemouse

Description:

Kata Task

Imagine if the rings of Saturn were the remains of some ancient moon.

How big would that moon be?

Let's find out.

Input

  • d - diameter of the planet
  • r1 - distance from the planet surface to the inner ring
  • r2 - distance from the planet surface to the outer ring
  • t - thickness of the rings
  • ratio - % of solid material within the rings (the rest is just empty space)

Output

  • diameter of a spherical solid moon made up of all the ring material.

Notes

  • All distance units are km
Fundamentals
Mathematics
Algorithms
Logic
Numbers

Similar Kata:

Stats:

CreatedJun 9, 2019
Warriors Trained26
Total Skips0
Total Code Submissions32
Total Times Completed15
Java Completions12
JavaScript Completions7
Total Stars1
% of votes with a positive feedback rating43% of 7
Total "Very Satisfied" Votes2
Total "Somewhat Satisfied" Votes2
Total "Not Satisfied" Votes3
Total Rank Assessments10
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • dinglemouse Avatar
Ad