Find the Surface Area of a Solid Using Volume and Similarity
Description:
Warning: This kata is currently broken and I am trying to fix it at the moment. Please do not attempt to solve it.
In this exercise, you will build a function that takes three parameters, a_vol
, a_area
and b_vol
, all positive integers above 0.
You have 2 similar cuboids, A and B. a_vol
represents the volume of cuboid A and a_area
represents its surface area. Respectively, b_vol
represents the volume of cuboid B. You must find cuboid B's surface area and return it. It must be rounded to 2 decimal points.
Hint: To find the surface area, you must take the ratio of A and B's volumes and square root it before assosiating it with A's surface area.
For example, if the parameters passed are (3, 2, 6)
, the ratio between A's volume and B's volume is 2
. Then you must square root it and then multiply it by 2.
If you can, try writing it in one line of code.
Similar Kata:
Stats:
Created | Mar 17, 2017 |
Warriors Trained | 19 |
Total Skips | 0 |
Total Code Submissions | 11 |
Total Times Completed | 5 |
Python Completions | 5 |
Total Stars | 0 |
% of votes with a positive feedback rating | 13% of 4 |
Total "Very Satisfied" Votes | 0 |
Total "Somewhat Satisfied" Votes | 1 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 2 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 7 kyu |