1)
Example of input values are :
15.2
35.3
2)
formulas:
circle area:
circumference:
Sphere area:
Sphere surface area:
3)
input code:
output:
code:
import math
'''take user input'''
radius=input("Enter a value: ")
'''store into list'''
radius=list(radius.split(" "))
'''convert string to int'''
radius = [int(i) for i in radius]
'''print input'''
print("Input :{0:9.2f} {1:9.2f}
{2:9.2f}".format(radius[0],radius[1],radius[2]))
'''print Circle area'''
print("Circle area :{0:9.2f} {1:9.2f}
{2:9.2f}".format(math.pi*radius[0]*radius[0],math.pi*radius[1]*radius[1],math.pi*radius[2]*radius[2]))
'''print Circle Circumference'''
print("Circle Circumference :{0:9.2f} {1:9.2f}
{2:9.2f}".format(2*math.pi*radius[0],2*math.pi*radius[1],2*math.pi*radius[2]))
'''print Sphere Volume'''
print("Sphere Volume :{0:9.2f} {1:9.2f}
{2:9.2f}".format(math.pi*radius[0]*radius[0]*radius[0]*4/3,math.pi*radius[1]*radius[1]*radius[1]*4/3,math.pi*radius[2]*radius[2]*radius[2]*4/3))
'''print Sphere surface area'''
print("Sphere surface area :{0:9.2f} {1:9.2f}
{2:9.2f}".format(4*math.pi*radius[0]*radius[0],4*math.pi*radius[1]*radius[1],4*math.pi*radius[2]*radius[2]))
iIn python please AutoSave H L04-3b Testing Lab - Protected View - Saved to this PC-...
This is for Pycharm a python course. Can I get some help doing this and understand it? ⑤ : ib tps://canvas.pasadena.edu/courses/1032754/assi a ☆ 西%N m Crowfall. Th O computing, with-c- O PHP Tutorial | SoloL ontoja. on tojav.. Write functions . def main) . def sphereVolume(r) . def sphereSurfacelr) def cylinderVolumetr. h) . def cylinderSurface(r, h) . def coneVolumefr, h) . def coneSurface(r, h) ences rations main() # call amin function at teh end In the main display, a menu...
Skills Needed: cin, cout, constants, arithmetic expressions, rounding, int main, meaningful variable names, spacing, indentation, documentation, output. Computing Basic Geometric Formulas Write a program to compute answers to some basic geometry formulas. The program prompts the user to input a length (in centimeters) specified as a floating point value. The program then echoes the input and computes areas of squares and circles and the volume of a cube. For the squares, you will assume that the input length value is...
Using Python 3+ for Question P5.9 Instructions: Use one main() to call each of the functions you created. Only use one value of r and h for all the function. Ask the user for the r and h in the main() as an input, and h for all the functions. You should put the functions for areas in a separate file. For example, firstDigtec7ze Write a function e digits n) (returning the number of digits in the argument returning...