Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Computer Lab.

(PYTHON)

1. Write a PYTHON module to compute the wind chill temperature (Twc). Enter
the air temperature (Ta) (in Fahrenheit) and the wind speed ( v ) (in mph).

Hint: Use the National Weather Service Formula:

2. Repeat question-1, enter the air temperature (Ta) (in Celsius)

9 
Hint: Use the conversion formula: F  C  32
5

3. If you know that the radius of the circle ( r ) inscribed in triangle with sides a, b, c
is:

( s  a)(s  b)(s  c)
r
s
1
where s  (a  b  c)
2
Write a PYTHON module to enter the triangle sides (a, b, c) then calculate r

4. The distance between two points ( a and b) (where a-coordinates is (ax , ay , az)
and b-coordinate is (bx , by , bz) ) can be calculated using the following equation:

d  (ax  bx) 2  (ay  by) 2  (az  bz) 2


Write a PYTHON module to enter a and b coordinates then print d.

You might also like