celsius = float(input("请输入摄氏度:"))
fahrenheit = (9/5)*celsius + 32
print("华氏温度为:",fahrenheit)
import math
radius = float(input("请输入圆柱的半径:"))
length = float(input("请输入圆柱的高度:"))
area = (radius**2)*math.pi
volume = area * length
print("底面积为:"+str(area))
print("体积为:"+str(volume))
num = int(input("请输入一个0到1000之间的数:"))
a = num%10
b = (num//10)%10
c = num//100
sum = a+b+c
print(sum)
num = int(input("请输入分钟数:"))
year = num//(1440*365)
day = num%(1440*365)//1440
print(day,"天")
print(year,"年")
M = float(input("水的重量:"))
initialtemperature = float(input("水的初始温度:"))
finaltialtemperature = float(input("水的最终温度:"))
Q = M * (finaltialtemperature - initialtemperature) * 4182
print(Q,"焦耳")
ta = float(input("室外温度:"))
V = float(input("风速:"))
twc = 35.74 + 0.6215*ta - 35.75*(V**0.16) + 0.4275*(ta*(V**0.16))
if ta>-58 and ta<41 :
print(twc)
else :
print("无法计算")
a = float(input("加速度:"))
v = float(input("启发速度:"))
length = (v**2)/(2*a)
print(length,"米")
num = int(input("请输入一个四位数:"))
a = num%10
b = num//10%10
c = num//100%10
d = num//1000%10
print(a,b,c,d)
import math
x1,y1 = eval(input("输入三角形的第一个顶点:"))
x2,y2 = eval(input("输入三角形的第二个顶点:"))
x3,y3 = eval(input("输入三角形的第三个顶点:"))
side1 = math.sqrt((x1-x2)**2+(y1-y2)**2)
side2 = math.sqrt((x1-x3)**2+(y1-y3)**2)
side3 = math.sqrt((x2-x3)**2+(y2-y3)**2)
s = (side3+side2+side1)/2
area = math.sqrt(s*(s-side1)*(s-side2)*(s-side3))
print(area)
import math
side = float(input("请输入边长:"))
s = (3*math.sqrt(3))/2*(side**2)
print(s)
money = int(input("每个月存多少钱:"))
a = 1+0.00417
# money1 = money*a
# sum1 = (money1+money)*a
# sum2 = (sum1+money)*a
# sum3 = (sum2+money)*a
# sum4 = (sum3+money)*a
# sum5 = (sum4+money)*a
# print(sum5)
#
i = 0
sum = 0
while i<6:
sum = (sum+money)*a
i += 1
print(sum)
money = int(input("存多少钱:"))
lilv = float(input("年利率:"))
year = int(input("年数为:"))
sum = money*((1+(lilv/1200))**(year*12))
print(sum)
import math
a,b,c = eval(input("请输入三条边长:"))
A = math.acos((a*a-b*b-c*c)/(-2*b*c))
B = math.acos((b*b-a*a-c*c)/(-2*a*c))
C = math.acos((c*c-b*b-a*a)/(-2*a*b))
print(A)
print(B)
print(C)
import math
s = float(input("请输入边长:"))
n = float(input("有多少边:"))
Area = n*(s**2)/(4*math.tan(math.pi/n))
print(Area)
num = int(input("请输入一个四位整数:"))
a = num%10
b = num//10%10
c = num//100%10
d = num//1000%10
sum = a*1000+b*100+c*10+d
print(sum)
num = float(input("请输入钱数:"))
a = num*100
b = a//100
c = a%100
d = c//25
e = c%25
f = e//10
g = e%10
h = g//5
i = g%5
print("分数为:",a)
print("美元个数为:",b)
print("两角五分个数为:",d)
print("一角硬币个数为:",f)
print("五分硬币个数为:",h)
print("一美分硬币个数为:",i)
name = input("姓名:")
time = float(input("一周工作时间:"))
money = float(input("每小时报酬:"))
tr = float(input("联邦预扣税率:"))
tr1 = float(input("州预扣税率:"))
a = time*money
b = a*tr
c = a*tr1
d = b+c
e = a-d
print("姓名:",name)
print("工作时长:",time)
print("每小时报酬:",money)
print("总计报酬:",a)
print("扣税及实发工资如下:")
print("联邦预扣税钱:",b)
print("州预扣税钱:",c)
print("总计扣税钱:",d)
print("实发工资:",e)