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.

Formulas:

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

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
If you turn on the lock alpha button , what happens
Answers: 1
question
Computers and Technology, 23.06.2019 09:10
(328 inc. 448 ind. 480 in25. john has a collection of toy cars. he has 2 red cars, 4 blue cars, 4 black cars, and 6 yellowcars. what is the ratio of red cars to yellow cars? a. 1: 2b. 1: 3c. 1: 626. the net of a right triangular prism is shown below.
Answers: 2
question
Computers and Technology, 24.06.2019 08:20
Which type of entity describes a fundamental business aspect of a database? a. linking b. lookup c. domain d. weak
Answers: 3
question
Computers and Technology, 24.06.2019 17:40
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print β€œbad input.” and terminate immediately
Answers: 2
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, 18.09.2021 17:30
question
Law, 18.09.2021 17:30
question
English, 18.09.2021 17:30
question
Mathematics, 18.09.2021 17:30
question
Mathematics, 18.09.2021 17:40
question
Mathematics, 18.09.2021 17:40
question
Mathematics, 18.09.2021 17:40
Questions on the website: 13722361