数学类应用题
r = float(input(“请输入圆的半径:”))
length = float(input(“请输入圆的高:”))
area = r * r * 3.14
volume = area * length
print(“圆的面积是:%s” %(area))
print(“圆的体积是:%s” %(volume))
a = int(input(“输入一个数字:”))
b = a%10
c = a//10
d = c%10
e = c//10
x=b+d+e
print(“这个数的和是%s”%x)
a = int(input(“输入分钟数:”))
b = a//365
c = a%365
print("%s大约是%s年%s天"%(a,b,c))
a = float(input(“输入水有多少千克:”))
b = float(input(“输入水的初始温度:”))
c = float(input(“输入水的最终温度:”))
q = a * (c - b)*4184
print(“需要的能量是:%s”%q)
ta = float(input(“输入一个在-58到41的华氏温度:”))
v = float(input(“输入风速:”))
twc = 35.74 + 0.6215ta -35.75(v0.16)+0.4275ta(v0.16)
print(“风寒湿度的值是%s”%twc)
a = float(input(“输入飞机的加速度:”))
v = float(input(“输入飞机的速度:”))
length = (v**2)/(2*a)
print(“最短的跑道为:%s”%length)
a = int(input(“输入一四位整个数: “))
b = a // 1000
c = a // 100 % 10
d = a % 100 // 10
e = a % 100 % 10
print(”%s%s%s%s”%(e,d,c,b))
s = float(input(“输入正六边形的边长:”))
area = (3*(3**(1/2))*(s**2))/2
print(“正六边形的面积是:%s” %area)
amount = float(input(“输入每月存款的数目:”))
a = 1 + 0.00417
b = amount * a
c = (b + 100) * a
d = (c + 100) * a
e = (d + 100) * a
f = (e + 100) * a
h = (f + 100) * a
print(“六个月后账户的总额是:%s”%h)
amount = float(input(“输入投资额:”))
annual_interest_rate = float(input(“输入年利率:”))
year = float(input(“输入年数:”))
value = amount * ((1 + annual_interest_rate)**year)
print(“未来投资额为:%s”%value)