Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How can i write a Pseudocode to convert from celcius to fahrenheit
Posted
Comments
ZurdoDev 13-Mar-12 12:26pm    
Pseudocode is something you write, something that makes sense to you. This sounds more like a homework question. Refer to your textbook.
Emilio Garavaglia 13-Mar-12 16:54pm    
WTF is Celsius to Fahrenheit conversion related to the title ????

Pseudocode is usually used as a preliminary step when teaching beginners programming. So it really depends on what was agreed upon when teaching started. I'll give a short example of my own invention which will most probably be useless for your purposes since we don't know what your pseudocode is supposed to look like:

VB
START PROGRAM

INPUT INTO temperature PROMPT "Enter a temperature value in Celsius"
MULTIPLY temperature BY 9 GIVING fahrenheit
DIVIDE fahrenheit by 5 GIVING fahrenheit
ADD 32 TO fahrenheit GIVING fahrenheit

OUTPUT "The temperature in fahrenheit is:" fahrenheit

END PROGRAM


Not very likely that this pseudocode will be acceptable. You can read some about Pseudocode[^].

Regards,

Manfred
 
Share this answer
 
Comments
Emilio Garavaglia 13-Mar-12 15:39pm    
hey ... this pseudocode looks like ... COBOL! :-)
Manfred Rudolf Bihy 13-Mar-12 18:58pm    
Yes I am that old to do something odd as that. :-)
 
Share this answer
 
1. Use google to find the formula for Celcius to Fahrenheit.

e.g from: http://wiki.answers.com/Q/What_is_the_conversion_formula_from_Celsius_to_Fahrenheit_and_vice_versa[^]

You will get:

To convert from Celsius to Fahrenheit:
F = (C x 9/5) +32
•Begin by multiplying the Celsius temperature by 9.
•Divide the answer by 5.
•Now add 32.

2. Now write pseudocode.

3. This approach can be used for many other problems and will make you self reliant and the envy of your peers.
 
Share this answer
 
v2
No. The era of information technology is the time when anyone is welcome to write any gibberish to make it available to common public.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900