Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The surface area of a dodecahedron is given by the following formula: The volume of a dodecahedron is given by the following formula: Where a
The surface area of a dodecahedron is given by the following formula:
The volume of a dodecahedron is given by the following formula:
Where a is the side length
Write a program that calculates the surface area and volume of a dodecahedron given the formulas above. Given the following initial value:
side_length = 6
The program will produce the following output:
A dodecahedron with side lengths of 6 has a surface area of 743.25 and a volume of 1655.23
Note the following:
- Do not include the above variable initialization statement in your code. These will be provided for you with each CodeRunner test case.
- The math module has been imported for you as part of this question's Coderunner setup. Do not import the module yourself.
- Both the surface area and volume should be rounded to the nearest 2 decimal places using the round() function.
For example:
Test | Result |
---|---|
side_length = 6 | A dodecahedron with side lengths of 6 has a surface area of 743.25 and a volume of 1655.23 |
side_length = 11 | A dodecahedron with side lengths of 11 has a surface area of 2498.13 and a volume of 10199.61 |
python please faster
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started