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
Kitty [74]
4 years ago
7

Write two functions var_input() and volume(), where var_input() accepts the input of the radius of a sphere and volume() returns

the volume of the sphere up to 4 decimal points.
Computers and Technology
1 answer:
astra-53 [7]4 years ago
6 0

Answer:

Program :

def var_input(): #input function which takes the radius as input.

 radius= float(input("Enter the radius of the sphere")) #statemet to take the inputs.

 volume(radius)  /#call the volume function.

def volume(radius):  #definition of volume function.

   print("The volume of the sphere is :"+"{:.2f}".format((4/3)*(22/7)*radius*radius*radius)) # print the volume of the sphere.

var_input() # calling the input function.

Output:

  • If the user inputs 4, then he will gets "268.19" as the output.
  • If the user inputs 5, then he will gets "523.81" as the output.

Explanation:

  • The above code is in python language, in which the first line is used to call the function.
  • Then the first line of the input function is used to render the message to the user and take the inputs from the user and store it into the radius variable.
  • Then the second line calls the volume function by passing the radius value.
  • Then the volume function calculates the volume and prints it.
You might be interested in
A popular database software program called ____ offers a wizard and QBE tool to help build and generate SQL queries
scZoUnD [109]

Answer: MS access

Explanation:MS access (Microsoft access) is the tool that is offered by Microsoft for analysis of data ,reporting , managing etc by storing. They can work oh huge amount of the data and also support other tools for this accessing such as QBE tool etc for production of the SQL queries.

These are the used for managing of the data appropriately as compared with other tools .

6 0
3 years ago
Consider a method defined with the header:
Alex Ar [27]
The floating point number will be demoted to an int, so 1 and 4 are fine. 2 is fine naturally, but 5 is invalid (2 params passed where 1 is expected).
Therefore option 3 is correct: <span>all of the options are legal except for 5</span>
6 0
3 years ago
When creating a shape in Word, what are some available options? Check all that apply. adding text to the shape changing the size
netineya [11]

Answer:

adding text to the shape

changing the size of the shape

changing the location of the shape

Explanation:

A word is can be regarded as graphical word processing program on the computer which can be used by users to type and to save documents. The word also has alot of useful tools with TABs such Insert, pagelayout, Design and others. It was developed by Microsoft corporation.

To create shapes in words, these step can be taken;

✓click "insert" at the interphase

✓Then look for "shapes" and select the needed shape.

✓To draw the shape, it should be clicked then drag holding the mouse.

✓after drawing, any modifications can be made, text can be added and lots more.

It should be noted that When creating a shape in Word, some of available options are;

✓adding text to the shape

✓changing the size of the shape

✓changing the location of the shape

8 0
3 years ago
What is pseudo code?
Aleksandr [31]

Answer:

a notation resembling a simplified programming language, used in program design.

Explanation:

8 0
3 years ago
Read 2 more answers
What is ASP.NET ?why is it important?
miskamm [114]
<span>ASP.NET is an open-source server-side web application framework designed for web development to produce dynamic web pages.

Without it, we would be lost on the internet, or possibly wouldn't even have internet. Whats the point of Wifi without web pages?</span>
6 0
3 years ago
Other questions:
  • What is Least effective at preventing a computer virus
    10·1 answer
  • Which of the following types of cloud platforms would a webmail service offered to the general public be considered?
    9·1 answer
  • Which key should you press and hold to select multiple cells?
    8·2 answers
  • The most important task in developing a new computer system/app is to: a) choose the most current technologies such as operating
    5·1 answer
  • Explain any 10uses of computer that are specific to your field of study giving appropriate examples​
    13·1 answer
  • The sun emits invisible _____&gt; A) electromagnetic waves B) Waves C) Radiation D) Wavelength E) Ultraviolet Light
    8·1 answer
  • When is 1600 plus 25 and 1700 minus 35 the same thing?​
    10·1 answer
  • Which activity is the best example of a negative habit that may result from
    12·1 answer
  • Select the correct answer from each drop-down menu. A company is recruiting for a web designer. What kind of candidate should th
    14·2 answers
  • What is the purpose of a project overview?
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!