Draft

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.

Stats:

CreatedMar 17, 2017
Warriors Trained19
Total Skips0
Total Code Submissions11
Total Times Completed5
Python Completions5
Total Stars0
% of votes with a positive feedback rating13% of 4
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes1
Total "Not Satisfied" Votes3
Total Rank Assessments2
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • Spherixo Avatar
Ad