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
1k bits equals to how many bits
ruslelena [56]

Answer:

1000 bits

Explanation:

hope it helps :D

8 0
3 years ago
What is the correct method to reset the contents of the CMOS NVRAM on HP Desktop / Workstation computers after the AC power has
Ipatiy [6.2K]

It should be noted that in order to reset the content of the CMOS NVRAM on HP Desktop, one can turn off the power and turn it back on while the person is holding the shift key.

It should be noted that the non-volatile RAM simply means a complementary metal-oxide-semiconductor chip that can be found inside computers which is vital for storing information.

To reset the content of the CMOS NVRAM on HP Desktop, one can turn off the power and turn it back on while the person is holding the shift key.

Learn more about computers on:

brainly.com/question/24540334

5 0
3 years ago
Which of these statements sums up why the computer is the most visible and
Andreyy89

Statement A is true, that is computers are used in all digital technologies.

Explanation:

  • Among the given statement the most appropriate statement to choose the computer as the most visible and pervasive product of the digital age is that computers are used in all digital technologies now.
  • And other statement are false or not valid as computers are not only used in United states
  • Computer is not the only form of communication.
  • And computers are not the only technological devices that we use now.

6 0
4 years ago
For which of the following situations would it be best to use a heuristic in order to find a solution that runs in a reasonable
Montano1993 [528]

Answer:

The answer is "Option B".

Explanation:

In this question, determining the optimal path between several locations, which requires n!. It's also examining possible routes. It could just suggest here, designers need to do those equations as we have several forms. They have several methods to find the best and efficient path. Its basic idea is to use heuristic approaches for complex or uncertain issues so we do not provide proven solutions for linear programs.

5 0
3 years ago
Read 2 more answers
Which of the following statements best explains how the high-gain antenna in Voyager probes has made outer space exploration eas
Alina [70]
The answer is (D) It can send data to Earth.

The High-Gain Antenna on the voyagers transmits data back to earth on 2 frequency channels. One channel transmits at about 8.4ghz and is in the X-band channel that contains engineering data. The other channel transmits data at around 2.3ghz and is in the S-band.






8 0
3 years ago
Other questions:
  • Variables used for output are associated with what controls on a form?​
    5·1 answer
  • A page can have High needs met rating even if it is not related To the topic of the query​
    9·1 answer
  • What was the first e-commerce service?
    10·1 answer
  • Can someone please help me on these short short questions marking Brainly computer modeling people please help
    14·1 answer
  • Slide layouts can be changed by _________
    6·1 answer
  • . Convert your age into binary and then to hexadecimal. Show your work.
    5·1 answer
  • What will be the code in CSS, to set
    13·1 answer
  • Dates of birth were entered into a computer program . The data was stored in the format DAY/MONTH/YEAR.The program rejected this
    12·1 answer
  • What are the two types of commennts of java​
    12·1 answer
  • Does anyone know how to do Python Essentials 5.7.1.6 because i am completely lost
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!