# What is the equation for temperature conversion from one scale to another. Also write algorithm?

+1 vote
104 views

+1 vote
by
selected by (user.guest)

Temperature Conversion

The commonly used scales for representing temperature are the Celsius scale, denoted in °C and the Fahrenheit scale (°F). Conversion from one scale to another can be done using the following equation.

F= (C*1.8)+32

C=(F-32)*1/1.8

Let us look at the algorithm, Pseudocode, and flow chart for the Temperature conversion problem.

Algorithm in step form

Step 1: Start

Step 2: READ the value in Celsius scale as C

Step 3: Use the formula F= (C*1.8)+32 to convert Celsius scale to Fahrenheit scale

Step 4: PRINT F

Step 5: READ the value in Fahrenheit scale as F

Step 6: Use the formula C=(F-32)*1/1.8 to convert Fahrenheit scale to Celsius scale

Step 7: PRINT C

Step 8: Stop

Pseudocode

COMPUTE F= (C*1.8)+32

PRINT F as Fahrenheit

COMPUTE C=(F-32)*1/1.8

PRINT C as Celsius

+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote
+1 vote