Create a program called "Geometry" Prompt the user for a small decimal number. Prompt the user for a large decimal number. Using those numbers as lower and upper bounds, randomly generate a decimal value between the two. Using the randomly generated number, calculate the VOLUME of a sphere if it were to have that size radius. Output the radius as well as the volume back to the user.

Answers

Answer 1

Answer:

In Python:

import random

small = float(input("Small: "))

large = float(input("Large: "))

radius = round(random.uniform(small, large),2)

volume = round(4/3 * 22/7 * radius* radius* radius,2)

print("Radius: "+str(radius))

print("Volume: "+str(volume))

Explanation:

This imports the random module

import random

The next two lunes prompt the user for small and large decimal number

small = float(input("Small: "))

large = float(input("Large: "))

This generates the radius

radius = round(random.uniform(small, large),2)

This calculates the volume

volume = round(4/3 * 22/7 * radius* radius* radius,2)

This prints the generated radius

print("Radius: "+str(radius))

This prints the calculated volume

print("Volume: "+str(volume))

Note that, the radius and the volume were approximated to 2 decimal places. Though, it wasn't stated as part of the program requirement; but it is a good practice.

Answer 2

The Python program to compute a sphere's volume, given a random radius, is found in the attached image

The program first asks for the small decimal number, then the large decimal number. It then converts them to floating point values and stores them in the variables min_value and max_value.

To generate a random radius, we use the function uniform to generate a value in the range min_value < random_radius < max_value

Then, the volume of the sphere is computed using the formula

[tex]\frac{4\times \pi \times random\_radius^3}{3}[/tex]

Finally, the random radius and the volume are both displayed to two decimal places.  

Learn more about computing volumes in Python: https://brainly.com/question/19150697

Create A Program Called "Geometry" Prompt The User For A Small Decimal Number. Prompt The User For A

Related Questions

What does D'Artagnan discover about Milady? d. That she has the mark of a criminal, the fleur- c. That she is secretly working for the queen. de-lis. b. That she is the wife of the Count of Rochefort. d. That she stole the diamonds from the queen.bl​

Answers

the answers is b .....

Answer:

prolly b

srry need tha points

Explanation:

Which type of material is most common in sports equipment?
OA.
metals
OB. composites
O c. stainless steel
OD.
ceramics

Answers

Answer:

stainless steel

Explanation:

Answer:

composites

Explanation:

this can refer to, baseball clothing, soccer clothing, football clothing, etc.

One benefit of taking notes in class is that the student

a.watches the teacher.
b.is actively engaged.
c.impresses the teacher.
d.writes instead of talking.

Answers

Answer:

A

Explanation:

you got to listen if you want to be smart

Which of the following are true of e-mail communications when compared to phone or face-to-face communications?


Communications via e-mail are _____.



absent of visual cues


more precise and accurate


limited in efficiency


less likely to be saved


easily shared


more difficult to determine tone or inflection
pick more than one

Answers

They would be easily shared, from what I believe

Communications via e-mail are Absent of visual cues, Easily shared and more difficult to determine tone or inflection.

What is communication?

The transmission of information is commonly defined as communication.

The term can also refer to the message itself, or to the field of study known as communication studies, which investigates these transmissions.

When compared to phone or face-to-face communications, the following statements are true of e-mail communications:

There are no visual cues.Simple to shareTone and inflection are more difficult to determine.

It is important to note that when compared to phone or face-to-face communications, the other statements listed are not always true of e-mail communications.

E-mail communications, for example, can be just as precise and accurate as other forms of communication, and in some cases, may be more efficient.

Thus, e-mails can also be easily saved and saved for future reference.

For more details regarding communication, visit:

https://brainly.com/question/22558440

#SPJ2

Other Questions
Saket make sure show all your work full points what is X Which of these statements is true of Han Fei Tzu? (4 points) A/He believed that anyone who broke the law should be punished, without exception.B/He believed that it was acceptable to break the law, if it would help your family. C/ He believed that it was acceptable to break the law, if the law was unjust. D/ He believed that punishments for those who broke the law should be based on wealth and social status. HELP ME OUTTTT Kenji has 54 books, 17 of the books are mysteries. 22 of the books are adventure stories. The rest of the books are about animals. How many of the books are about animals? plz someone help me with at least one Find the area of the shaded region. Round your answer to the nearest tenth if needed. How are paragraphs 2 through 4 organized?AnswerAThey compare the plants Rodriguez collected to the endophytes living on theplants.BThey describe the steps Rodriguez followed while researching plants in hislaboratoryC) They explain the problem Rodriguez was trying to solve based on hisobservations.D They describe the structure of the plants Rodriguez collected from a harshenvironment help with this please 1. As Commander in Chief of the Army and Navy, I havedirected that all measures be taken for our defense. Butalways will our whole nation remember the character ofthe onslaught against us.... [T]he American people intheir righteous might will win through to absolute victory.2. And in the difficult hours of this day - through dark daysthat may be yet to come - we will know that the vastmajority of the members of the human race are on ourside. Many of them are fighting with us. All of them arepraying for us. But, in representing our cause, we representtheirs as well - our hope and their hope for liberty underGod.Which most accurately describes a major difference in the emphasis betweenthe two speeches?O A. Speech #1 conveys a less certain tone concerning future victorythan Speech #2.O B. Unlike Speech #1, Speech #2 employs logos to indicate that war isnecessaryO c. Unlike Speech #1, Speech #2 uses emotional language to remindAmericans that they are not alone.O D. Both speeches pronounce a dark, uncertain future for the UnitedStatesPREVIOUS Write the formulas for the following ionic compounds.potassium iodidemagnesium phosphidesilver sulphideiron(III) bromidemagnesium hydroxidesodium sulphatelead (IV) nitrateammonium carbonate Help me answer this chemistry question. thank you! Questions1. Is the statement true that a gas takes on the shape of the container?2. What happened to the water when it was poured into the glass? Into the square container?3. Did the wood have a fixed shape?4. Of what state of matter is water an example?5. Of what state of matter is ice an example?6. Of what state of matter is steam an example?This is for a project. Complete in complete sentences. Please. Sorry if this is confusing "The Road Not Taken" is mainly aboutO the way we make choices in lifeO regret over having made wrong choicesO the dangers of less travelled roadsa way to take two roads at once PLEASE HELP WITH EXPLANATION Mary always saved 45% of his salary. When his salary decreased by 20% in April, his savings decreased by $180.How much was Marys salary before the decease? which could be the value of x in the triangle below I need to write a poem with at least 10 lines based on Norse Mythology. Does 3/10 x 1/2 = 3/20 ? Part AWhat is a theme of Twelfth Night?A.Seeking revenge is never justified.B.Telling lies rarely hides the truth. C.With experience comes wisdom. D.Outer appearances can be misleading.Part BWhich detail from Act V best supports the theme in Part A?A."Malvolio: (To Olivia, waving a letter.) Madam, you have done me wrong. Notorious wrong. (Thrusting the letter at her) Lady, peruse that letter."B."Sebastian: Were you a woman, I should my tears let fall upon your cheek, and say, Thrice welcome, drowned Viola!"C."Duke: That face of his I do remember well. (To Antonio) Notable pirate. What foolish boldness brought thee to thine enemies?"D."Fabian: Good madam, hear me speak. Most freely I confess, myself and Toby set this device against Malvolio here." It's easy 5th-grade math please solve the whole problem (the whole backside is the problem u can look I will mark the brainiest... In CDE, the measure of E=90, the measure of C=75, and CD = 5.8 feet. Find the length of EC to the nearest tenth of a foot. What do you already know about the structure of a water molecule?