Kizspy.me
(2 marks)
2 of 3
Paper No: 1
The given file Q1.c already contains statements to enter a temperature in Celsius (C). You should
write statements to convert the temperature from Celsius (C) to Fahrenheit (F).
Hints: The conversion formula for converting temperature from Celsius to Fahrenheit can be
expressed as: F=Cx9/5+32
Where,
Fis the temperature in Fahrenheit.
C is the temperature on the Centigrade scale.
Notes:
-Do not edit given statements in the main function.
- You can create new functions if you see it is necessary.
-The output result is formatted in two decimal places
Sample input and output:
Input: temperature = 20.5
After processing: result = 68.90
Output for marking:
OUTPUT:
68.90
Question 2:
Zoom
-FUO
+ 100%
Close