The material costs of building a single pillar is $25 per cubic metre. A regular tetrahedron (triangular pyramid) is a solid three-dimensional shape that has four equilateral triangular faces. One of the equilateral triangles is considered as the base and the other three equilateral triangles together form the pyramid. The required formulae for calculating the total volume of a pillar are as follows: • The formula to calculate the volume of a regular tetrahedron, with side length a, is: V = a³√2 12 • The formula to calculate the volume of a sphere, with radius r, is: 4 V=r³ Note that for π (pi) we would be the constant from the math module. Given the side length of the regular tetrahedron portion of a pillar and the radius of the sphere portion, compute and display the total volume of a single pillar as well as the material costs of all 8 pillars that Mr. Table needs. Your output should have appropriate labelling and formatting. Note: Use the math module functions (pow, sqrt) and the constant pi. Call the file containing your program pillars.py. Sample input (shown in bold blue) and output from the program is as follows: Please enter (in metres) the side length of the regular tetrahedron: 6 Please enter (in metres) the radius of the sphere: 2 The total volume of one pillar is 58.97 cubic metres. The cost of 8 pillars is $11793.23

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

as simple as possible no need for a fancy code!!!

The material costs of building a single pillar is $25 per cubic metre.
A regular tetrahedron (triangular pyramid) is a solid three-dimensional shape that has four equilateral triangular
faces. One of the equilateral triangles is considered as the base and the other three equilateral triangles together
form the pyramid.
The required formulae for calculating the total volume of a pillar are as follows:
• The formula to calculate the volume of a regular tetrahedron, with side length a, is:
a³√2
V=-
12
• The formula to calculate the volume of a sphere, with radius r, is:
4
V = = πr³
Note that for л (pi) we would be the constant from the math module.
Given the side length of the regular tetrahedron portion of a pillar and the radius of the sphere portion,
compute and display the total volume of a single pillar as well as the material costs of all 8 pillars that Mr.
Table needs. Your output should have appropriate labelling and formatting.
Note: Use the math module functions (pow, sqrt) and the constant pi.
Call the file containing your program pillars.py.
Sample input (shown in bold blue) and output from the program is as follows:
Please enter (in metres) the side length of the regular tetrahedron: 6
Please enter (in metres) the radius of the sphere: 2
The total volume of one pillar is 58.97 cubic metres.
The cost of 8 pillars is $11793.23
Transcribed Image Text:The material costs of building a single pillar is $25 per cubic metre. A regular tetrahedron (triangular pyramid) is a solid three-dimensional shape that has four equilateral triangular faces. One of the equilateral triangles is considered as the base and the other three equilateral triangles together form the pyramid. The required formulae for calculating the total volume of a pillar are as follows: • The formula to calculate the volume of a regular tetrahedron, with side length a, is: a³√2 V=- 12 • The formula to calculate the volume of a sphere, with radius r, is: 4 V = = πr³ Note that for л (pi) we would be the constant from the math module. Given the side length of the regular tetrahedron portion of a pillar and the radius of the sphere portion, compute and display the total volume of a single pillar as well as the material costs of all 8 pillars that Mr. Table needs. Your output should have appropriate labelling and formatting. Note: Use the math module functions (pow, sqrt) and the constant pi. Call the file containing your program pillars.py. Sample input (shown in bold blue) and output from the program is as follows: Please enter (in metres) the side length of the regular tetrahedron: 6 Please enter (in metres) the radius of the sphere: 2 The total volume of one pillar is 58.97 cubic metres. The cost of 8 pillars is $11793.23
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY