Provide Best Programming Tutorials

(将摄氏温度转换为华氏温度）

Enter a degree in Celsius: 43
43 Celsius is 109.4 Fahrenheit

计算圆柱体的体积

面积= 半径 x 半径 x p

Enter the radius and length of a cylinder: 5.5 12
The area is 95.0331
The volume is 1140.4

(将英尺转换为米）

Enter a value for feet: 16.5
16.5 feet is S.0325 meters

(将磅转换为千克）

Enter a number in pounds: 55.5 :
55.5 pounds is 25.197 kilograms

( 财务应用程序：计算小费）

Enter the subtotal and a gratuity rate: 10 15
The gratuity is $1.5 and total is$11.5

( 求一个整数各位数的和）

Enter a number between 0 and 1000: 999
The sum of the digits is 27

( 求出年数）编写程序，提示用户输入分钟数（例如十亿）然后显示这些分钟代表多少年和多少天。为了简化问题，假设一年有365 天。下面是一个运行示例：

Enter the number of minutes: 1000000000
1000000000 minutes is approximately 1902 years and 214 days

( 物理：加速度）

$a=\frac { v1-v2 }{ t }$

Enter v0, v1, and t: 5.5 50.9 4.5
The average acceleration is 10.0889


(科学：计算能量）

Q – M x (最终温度- 初始温度）x 4184

Enter the amount of water in kilograms: 55.5
Enter the initial temperature: 3.5
Enter the final temperature: 10.5
The energy needed is 162S484.0

(物理：求出跑道长度）

Enter speed and acceleration: 60 3.5
The minimum runway length for this airplane is 514.286

(财务应用程序：复利值）

100 * (1 + 0.00417) = 100.417

(100 + 100.417) * (1 + 0.00417) = 201.252

(100 + 201.252) * (1 + 0.00417) = 302.507

Enter the monthly saving amount: 100

答案

https://github.com/AndrewProgramming/chapter_programmingBasic_homework/tree/master/src