Pseudo Code

profilegrarod
mid_term_6.docx

/*This program will be used to convert the temperatures from Fahrenheit to Celsius and from Celsius to Fahrenheit for the Temperature Convention Center. */  

Declare Celsius and Fahrenheit as float

Declare x,y, choice as char

Write: “Welcome to the Temperature Conversion Center! This program will allow the user to”

Write: “enter a series of Degree Celsius temperatures that you want to convert to Degree”  

Write: “Fahrenheit or Degrees Fahrenheit to Degrees Celsius! Your converted temperatures”

Write: “will be displayed on the screen! Press letter x if you want to convert Degrees Fahrenheit”

Write: “to Degrees Celsius or y if you want to convert Degrees Celsius to Degrees Fahrenheit”

Input choice

If (choice=x)

Write: +Celsius+ “degrees Celsius is” +Fahrenheit+ “degrees Fahrenheit \n”

Input Fahrenheit

Celsius = (Fahrenheit – 32) * 1.8

Else if (choice=y)

Write: +Fahrenheit+ “degrees Fahrenheit is” +Celsius+ “degrees Celsius \n”

Input Celsius

Fahrenheit = (Celsius1 * 9)/5 + 32

Else

Write “sorry, use the allowed options that is x and y \n”

End If

End If

End If

Write: “The conversion from Celsius to Fahrenheit and Fahrenheit to Celsius has ended,”

Write: “Thank you for using this program!”