/**********************************************************************/
/* */
/* File: Fahrenheit-Pseudocode.txt
/* Author: Mike Elms */
/* Date: 2/4/2012 */
/* Purpose: To convert a temperature from Celsius to Fahrenheit */
/* */
/**********************************************************************/
Analysis
We need to write a program to convert a temperature from Celsius to Fahrenheit.
We will need to variables.
One to hold the value for Celsius and one to hold the value for Fahrenheit.
The equation to convert from Celsius to Fahrenheit is:
f = (c*(9/5))+32
The user will enter a value for Celsius and the program will
display the result in Fahrenheit.
Design
Main module
Declare f as float
Declare c as float
Write "Begin"
Write "Enter a temperature in Celsius: "
Input c
Set f = (c*(9/5))+32
Write "Fahrenheit: ", f
Write "End"
End Program
Output
Test Run 1
Begin
Enter a temperature in Celsius: 0
Fahrenheit: 32
End
Test Run 2
Begin
Enter a temperature in Celsius: 100
Fahrenheit: 212
End