Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

Q.No.1 Explain Large scale map ? Q.No.2 Explain small scale map ?

Answered: 1 week ago

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago