Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help with this program!!!!!!! Must be written in Python!!! Now, let\'s de

ID: 3926830 • Letter: I

Question

I need help with this program!!!!!!!
Must be written in Python!!!

Now, let's design a program that takes the weight (in pounds) and radius (in feet) of a sphere as input and outputs the buoyant force. Use gamma = 62.4 lb/ft^3 as the specific weight of water, and the volume of the sphere is (4/3)pi r^3. The buoyant force can be computed by F_b = V times gamma where F_b is the buoyant force, V is the volume of the submerged object, and y is the specific weight of the fluid. If F_b is greater than or equal to the weight of the object, then your program will output, "This sphere will float", otherwise it will output, "This sphere will sink."

Explanation / Answer

from math import pi;
weight = float(input("Enter Weight in pounds"));
r = float(input("Enter Radius in feets")); ## taking input from user
volume = (4/3)*pi * r**3 ## calculating volume
spcweight=62.4/r**3## calculating specifi weight
Fb = volume*spcweight ## calculating Fb
if Fb>=weight: ## comparing Fb and weight
print("This sphere will float");
else:
print("This sphere will sink");