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!!!
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");