LAB PGM1
LAB PGM1
By,
Mrs.R.DEVIPRIYA,
Assistant Professor,
Department Of Computer Science.
INDEX PAGE
NAME : SUBJECT NAME : PROBLEM SOLVING
USING PYTHON
CLASS : SUB.CODE :
S.NO DATE PROGRAM NAME WRITTEN OUTPUT RECORD
FLOW CHART - SYMBOLS
LAB EXERCISE - I
Program to convert the given
temperature from Fahrenheit to
Celsius and vice versa depending
upon user’s choice.
FORMULA
• Conversion from Fahrenheit to Celsius
C = ( F – 32 ) * 5 / 9
Enter the
Enter the temperature in
temperature in Celsius
Fahrenheit
C = ( 9/5 * C ) + 32
C = ( F – 32 ) * 5/9
Write
Write
Temperature in
“Temperature
Fahrenheit”, f
in Celsius”, c
STOP
RESULT
• Thus, the given program was executed and the output was
displayed in the python shell.