+1 vote
in Programming Languages & Algorithms by

1 Answer

+1 vote
selected by (user.guest)
Best answer

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


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


READ Celsius value as C

COMPUTE F= (C*1.8)+32

PRINT F as Fahrenheit

READ Fahrenheit value as F

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

PRINT C as Celsius

Related questions

+1 vote
1 answer 69 views
+1 vote
1 answer 199 views
+1 vote
1 answer 666 views
+1 vote
1 answer 153 views
+1 vote
1 answer 2.1k views
+1 vote
1 answer 2.5k views
+1 vote
1 answer 75 views
+1 vote
1 answer 41 views
+1 vote
1 answer 283 views
+1 vote
1 answer 87 views
+1 vote
1 answer 608 views
Welcome to CPENTalk.com
Solution-oriented students of computer engineering on one platform to get you that