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
KIM [24]
3 years ago
6

Write an interactive program to calculate the volume and surface area of a three-dimensional object

Computers and Technology
1 answer:
Sveta_85 [38]3 years ago
5 0

Answer in Python:

<em># Define program constants</em>

PI = 3.14

<em># Welcome the user to our program</em>

print("### Welcome to the Sphere Volume Calculator")

<em># Ask for the Radius (r) input and store it as a float</em>

radius = float(input("Type the Radius of your sphere in meters: "))

<em># Calculate the volume</em>

volume = 4 / 3 * PI * radius ** 3

<em># Print the result</em>

print("Your sphere volume is:", volume, "m³")

References:

  • https://www.w3schools.com/python/python_variables.asp
  • https://www.w3schools.com/python/python_casting.asp
  • https://www.w3schools.com/python/python_user_input.asp
  • https://www.w3schools.com/python/python_operators.asp
  • https://www.w3schools.com/python/ref_func_print.asp
You might be interested in
HURRYY!!!<br> In the movie "Spare Parts" why can't Oscar enlist in the armed forces????
Volgvan

Answer:

He doesn't have a United States birth certificate as proof he is a resident. ... She thinks he's going to enlist in US Army.

Explanation:

hope this help with your question

5 0
2 years ago
Which goal of design theory can be described as the proper distribution
muminat
The answer is balance
7 0
3 years ago
Gps receivers are commonly used by individuals to determine their geographic location while hiking and to obtain driving directi
soldier1979 [14.2K]
I think it is true also.
7 0
4 years ago
Write a function named intro that takes a string as input.
Pani-rosa [81]

Answer:

View Image

Explanation:

Import <em>string.h</em> to use <em>strcat()</em>.

Create a buffer to store user input and the returned string value.

You need to return a string so the function must be a pointer of type char.

You need to use the function <em>strcat()</em> to concatenate the two strings together. It's not easy as python where you can just add strings together.

6 0
3 years ago
Elizabeth works for a local restaurant At the end of her shift, she is required
eimsori [14]

Answer:

write the time she arrived at the job and the time she left

Explanation:

6 0
4 years ago
Read 2 more answers
Other questions:
  • In a _____, if any link between nodes is severed, the entire network is affected, and failure of a single node disrupts the enti
    9·1 answer
  • How do you calculate the total voltage in a series circuit with more than one component?
    13·2 answers
  • To put out a minor engine fire, use
    12·1 answer
  • The primary benefit to the use of overlays in animation is that animators are able to
    12·2 answers
  • Name two different ways you can bring up the my computer folder
    9·2 answers
  • What G-Suite Apps integrate with Forms
    14·2 answers
  • When an instruction is sent to the CPU in a binary pattern, how does the CPU know what instruction the pattern means
    7·1 answer
  • Last one, this is fashion marketing and I need to know the answer to get the 80%
    6·1 answer
  • Who invented pascaline and when?​
    11·2 answers
  • To read encrypted data, the recipient must decipher it into a readable form. What is the term for this process?.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!