subject

Using the new python online tool (see attached link), write a program that contains two files. One file is the main. py and the other file is a support. py Add TWO function definitions to the support. py file ONLY (see video).

One function must calculate the volume of ANY cylinder. You must determine how many arguments you should pass to that function based on the volume formula.

Another function must calculate the volume of ANY pyramid. You must determine how many arguments you should pass to that function based on the volume formula.

Each function must return the results of their calculations to the caller.

Using the import module, call each function in the support. py file from the main. py file and display the results (see video).

Formulas:

Pyramid: v= β…“* l*w*h
Cylinder: v = 2*PI*r^2*h

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:30
An atom's diameter is about 0.1 nanometer (1Γ—10-9m), and a human hair is about 1Γ—10-3m. how many times greater is a human hair than an atom's diameter? sorry pushed wronf button but this is math
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. which step can possibly increase the severity of an incident? a. separating sensitive data from non-sensitive data b. immediately spreading the news about the incident response plan c. installing new hard disks d. increasing access controls
Answers: 2
question
Computers and Technology, 23.06.2019 21:40
language consists of basic components, and they are called a. 3; mental images, concepts, and speech b. 2; language acquisition and linguistic relativity c. 3; heuristics, algorithms, and analogies d. 4; phonemes, morphemes, syntax, and semantics e. 2; words and grammar
Answers: 3
question
Computers and Technology, 24.06.2019 12:00
What is a sketch or blueprint of a web page that shows the structure (but not the detailed design) of basic page elements such as the logo, navigation, content, and footer?
Answers: 3
You know the right answer?
Using the new python online tool (see attached link), write a program that contains two files. One f...
Questions
question
Mathematics, 14.05.2021 02:20
question
Mathematics, 14.05.2021 02:20
Questions on the website: 13722363