# 第一题
Wen =float(input("请输入摄氏温度值:"))
hua =(9/5)*float(Wen)+32print('%.2f摄氏度是%.2f华氏温度'%(Wen, hua))# 第二题 import math
r , h =map(float,input('Enter the radius and length of a cylinder:').split(','))
area =math.pi * r * r
volume = area * h
print('the area is %g'%area )print('the volume is %g'%volume)
# 第三题
a =float(input('Enter a value for feet:'))
b = a *0.305print('%g feet is %g meters'%(a,b))# 第四题
kg =float(input('enter the amount of water in kilograms:'))
wen1 =float(input('enter the initial temperature:'))
wen2 =float(input('enter the final temperature: '))
Q = kg *( wen2 - wen1 )*4184print('the energy needed is %.1f'%Q)
# 第五题
a , b =map(float,input('enter balance and interest rate(e.g.,3 for 3%): ').split(','))
c = a *(b /1200)print('The interest is %.5f'%c)# 第六题
v0 , v1 , t =map(float,input('Enter v0, v1, t :').split(','))
a =(v1 - v0)/t
print('The average acceleration is %g'%a)
# 第七题
a =float(input('Enter the monthly saving amount :'))
b =0for i inrange(1,7):
b =( a + b )*(1+0.00417)print('after the sixth month, the account value is %.2f'%b)# 第八题
a =float(input('Enter a number between 0 and 1000 :'))
b = a //10
c = b //10
d = b %10
e = a %10
he = c + d + e
print('The sum of the digits is %g'%he)
a =25/4print('25/4等于%g'%a)print('转换为整数为%.0f'%a)
num =float(input('请输入一个数字:'))if num %2==0:print('数字%g是偶数'%num)else:
num %2!=0print('数字%g是奇数'%num)
num =int(input('请输入一个秒数:'))min= num //60
s = num -60*minprint('该秒数为%g分%g秒'%(min,s))
d =10%7
w =0-1+ d
print('十天之后是星期%g'%w)
# 第一题Wen = float (input("请输入摄氏温度值:"))hua = (9/5)*float(Wen)+32print('%.2f摄氏度是%.2f华氏温度'%(Wen, hua))# 第二题 import mathr , h = map(float,input('Enter the radius and length of a cylinder:').split(',...