0% found this document useful (0 votes)
248 views1 page

Pseudocode Temperature Converter (David James Ignacio)

This pseudocode displays a menu for the user to choose converting between Fahrenheit and Celsius. It then reads the user's selection and either takes a Fahrenheit temperature and converts it to Celsius using the formula (fahrenheit_temp - 32) * 5/9, or takes a Celsius temperature and converts it to Fahrenheit using the formula (celsius_temp * 9/5) + 32, then displays the result.

Uploaded by

djignaci1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
248 views1 page

Pseudocode Temperature Converter (David James Ignacio)

This pseudocode displays a menu for the user to choose converting between Fahrenheit and Celsius. It then reads the user's selection and either takes a Fahrenheit temperature and converts it to Celsius using the formula (fahrenheit_temp - 32) * 5/9, or takes a Celsius temperature and converts it to Fahrenheit using the formula (celsius_temp * 9/5) + 32, then displays the result.

Uploaded by

djignaci1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

David James B.

Ignacio

Pseudocode for temperature converter. One for Celsius to Fahrenheit and another one for Fahrenheit to
Celsius.

1. Display choice for conversion (1. Fahrenheit to Celsius, 2. Celsius to Fahrenheit)


2. Read user's choice

3. If user's choice is 1:

1. Read temperature in Fahrenheit (fahrenheit_temp)


2. Convert fahrenheit_temp to Celsius using the formula: celsius_temp = (fahrenheit_temp - 32) * 5/9
3. Print celsius_temp = (fahrenheit_temp - 32) * 5/9
4. Display the converted temperature in Celsius

4. Otherwise if user's choice is 2:


1. Read temperature in Celsius (celsius_temp)
2. Convert celsius_temp to Fahrenheit using the formula: fahrenheit_temp = (celsius_temp * 9/5) + 32
3. Print fahrenheit_temp = (celsius_temp * 9/5) + 32
4. Display the converted temperature in Fahrenheit

You might also like