I need help with this program Must be written in Python Now
I need help with this program!!!!!!!
Must be written in Python!!!
Solution
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\");
