1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
andreyandreev [35.5K]
3 years ago
7

Now create a separate function called sphereVolume that determines the volume of a sphere with a given radius and prints the res

ult to the screen. Specifications:
a. Your function MUST be named sphereVolume
b. Your function should have one input argument: a floating point parameter representing the radius - as a double
c. Your function should not return anything.
d. Your function should print the calculated volume.
e. The output format should resemble that of the previous problem. For a radius of 5, the function should print:
Engineering
2 answers:
Stella [2.4K]3 years ago
6 0

Answer:

The question is not complete. the complete question is shown below.

Now create a separate function called sphereVolume that determines the volume of a sphere with a given radius and prints the result to the screen. Specifications:

a. Your function MUST be named sphereVolume

b. Your function should have one input argument: a floating point parameter representing the radius - as a double

c. Your function should not return anything.

d. Your function should print the calculated volume.

e. The output format should resemble that of the previous problem. For a radius of 5, the function should print:

Volume: 523.99

Explanation:

professor190 [17]3 years ago
6 0

complete question:

Now create a separate function called sphereVolume that determines the volume of a sphere with a given radius and prints the result to the screen. Specifications:

a. Your function MUST be named sphereVolume

b. Your function should have one input argument: a floating point parameter representing the radius - as a double

c. Your function should not return anything.

d. Your function should print the calculated volume.

e. The output format should resemble that of the previous problem. For a radius of 5, For example: Test Result sphereVolume(5); volume: 523.599

Answer:

import math

def sphereVolume(r):

          # where r = radius of the sphere

             volume = 4/3 * math.pi * r**3

             print(round(volume, 3))

sphereVolume(5)

Explanation:

The code is written in python .

def sphereVolume(r):

This line of code defines the function as instructed as sphereVolume.

# where r = radius of the sphere

This is just a line of comment to explain that the argument r is the radius

volume = 4/3 * math.pi * r**3

The volume of a sphere is 4\pir³. so the code define the formula of a volume of a sphere and stored it in a variable called volume.

print(round(volume, 3))

The code displays the answer of a volume of a sphere when passing  the radius  of a sphere as the argument . The volume of the sphere is rounded to 3 decimal place using the function round.

sphereVolume(5)

This code calls the function with the argument which is the radius.

You might be interested in
By using order of magnitude analysis, the continuity and Navier-Stokes equations can be simplified to the Prandtl boundary-layer
Mademuasel [1]

Answer: Attached below is the well written question and solution

answer:

i) Attached below

ii) similar parameter =  \frac{V}{VoL } = 1 / Re

Explanation:

Using ;  L as characteristic length and Vo as reference velocity

i) Nondimensionalize the equations

ii) Identifying similarity parameters

the similar parameters are  = \frac{V}{VoL } = 1 / Re

Attached below is the detailed solution

7 0
3 years ago
A jet aircraft is in level flight at an altitude of 30,000 ft with an airspeed of 500 ft/s. The aircraft has a gross weight of 1
Naily [24]

Answer:

a) attached below

b) 0.0337

c) 2730.206 Ib

d) 2320.338 ft/min

Explanation:

<u>a) Plot of the drag polar for this aircraft </u>

first we will calculate :

Wing area (s) = Wing span (b) * Average chord length(c)

                       = 53.3 * 6 = 319.8 ft^2

Aspect ratio =  b^2 / s = 8.883

K = 1 / \pieAR = 1 /

Drag polar ( Cd ) = 0.02 + 0.044 C^2L

attached below is a plot of the drag polar

<u />

Attached below is the detailed solution of the remaining part of the question

6 0
3 years ago
5 kg of a wet steam has a volume of 2 m3
Verizon [17]
Have you seen the state of her body. Mad. If I wear it I ain’t wearing a jolly. ADEOLA wanna ride in the gysa
4 0
3 years ago
# 45 You are driving on a two-lane highway and the vehicle behind you wants to pass. You should
hram777 [196]

Answer:

Signal the driver behind you when it is safe to pass by turning on your four-way emergency flashers.

Avoiding casualties is the top priority when driving, the other choices given do not put whether there are cars in the other lane into consideration, therefore making them incorrect. Signaling the driver when it is safe gives you the time and them the gateway to pass, making a nice interaction keep you both alive.

4 0
2 years ago
What 2 disciplines comprise systems engineering?
kirill [66]

Answer:

Engineering and the Engineering management

Explanation:

Systems engineering is a discovery process that includes managing and designing complex systems to formalize the various new research approach or methods.

It is an interdisciplinary holistic approach or field that is comprised of <u>engineering and the engineering management.</u>

The three types of systems engineering are: Product Systems Engineering, Enterprise Systems Engineering and Service Systems Engineering.

5 0
3 years ago
Other questions:
  • Three return steam lines in a chemical processing plan enter a collection tank operating at a steady state at 1 bar. Steam enter
    11·1 answer
  • An insulated rigid tank of volume 8 m3 initially contains air at 600 kPa and 400 K. A valve connected to the tank is opened, and
    10·1 answer
  • The specific gravity of a substance that has mass of 10 kg and occupies a volume of 0.02 m^3 is a) 0.5 b) 1.5 c) 2.5 d) 3.5 e) n
    11·1 answer
  • 5. Identify the pros and cons of<br> manufactured siding.
    12·1 answer
  • write an interface downloadable that has a method "geturl" that returns the url of a downloadable object
    5·1 answer
  • Which option identifies the technology that controlled flooding in the following scenario? The Nile River in Egypt floods its ba
    15·2 answers
  • The costs of mining and transporting coal are roughly independent of the heating value of the coal. Consider:
    15·1 answer
  • Five batch jobs A through E arrive at a computer center in the order A to E at almost the same time. They have estimated running
    11·1 answer
  • How do you take a picture
    14·2 answers
  • What is the total resistance of three resistors in parallel with values of 2 ohms, 4 ohms, and 4 ohms?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!