13 This problem requires you to generate temperature convers

13) This problem requires you to generate temperature conversion tables. Use the following equations, which describe the reltionships between tempera- tures in degrees Fahrenheit (T), degrees Celsius ( Te), kelvins (T), and degrees Rankine (TR), respectively: elationships between te R459.67°R

Solution

1. Conversion from Farenheit to Kelvin

Code:

n=input(\'enter the increment in F\')
Tf=[0:n:200];
Tk=(5/9)*(Tf+459.67);
disp(\'Fahreheit Kelvin\');disp([Tf\' Tk\'])

Output for n=20

Fahreheit Kelvin
0 255.3722
20.0000 266.4833
40.0000 277.5944
60.0000 288.7056
80.0000 299.8167
100.0000 310.9278
120.0000 322.0389
140.0000 333.1500
160.0000 344.2611
180.0000 355.3722
200.0000 366.4833

2. Conversion from Celcius to Rankin

Code:

s=input(\'starting temperature\');
i=input(\'increment in each line\');
n=input(\'number of lines in table\');
q=((n-1)*i)+s;
Tc=[s:i:q];
Tr=(((9/5)*Tc)+32)+459.67;
disp(\' Celcius Rankine\');disp([Tc\' Tr\'])

Output for 25 lines:

Celcius Rankine
5.0000 500.6700
10.0000 509.6700
15.0000 518.6700
20.0000 527.6700
25.0000 536.6700
30.0000 545.6700
35.0000 554.6700
40.0000 563.6700
45.0000 572.6700
50.0000 581.6700
55.0000 590.6700
60.0000 599.6700
65.0000 608.6700
70.0000 617.6700
75.0000 626.6700
80.0000 635.6700
85.0000 644.6700
90.0000 653.6700
95.0000 662.6700
100.0000 671.6700
105.0000 680.6700
110.0000 689.6700
115.0000 698.6700
120.0000 707.6700
125.0000 716.6700

Part 3: Conversion from Celcius to Farenheit

Code

s=input(\'starting temperature\');
i=input(\'increment in each line\');
n=input(\'number of lines in table\');
q=((n-1)*i)+s;
Tc=[s:i:q];
Tf=(((9/5)*Tc)+32)
disp(\' Celcius Farenheit\');disp([Tc\' Tf\'])

Output:

Celcius Farenheit
5 41
10 50
15 59
20 68
25 77
30 86
35 95
40 104
45 113
50 122

 13) This problem requires you to generate temperature conversion tables. Use the following equations, which describe the reltionships between tempera- tures in
 13) This problem requires you to generate temperature conversion tables. Use the following equations, which describe the reltionships between tempera- tures in

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site