- 1). Learn the formulas for converting from Celsius to Fahrenheit and vice versa. To convert from Fahrenheit to Celsius, subtract 32 from the temperature in Fahrenheit and then multiply it by 5/9. For the other way around, multiply the temperature in Celsius by 9/5 and add 32 to the sum.
- 2). Choose a programming language that you want to use for your program. Every computer programming language is similar but they have their own ways of doing the same thing. Any language is fine for beginners.
- 3). Write a function or several functions to represent your conversion. A simple method of dividing up a converter would be into two different functions, one for converting from Celsius to Fahrenheit and one for the other way around. At the least, your function should take a temperature value as the input and return the temperature in the other measurement system.
- 4). Call your function or functions within your program. Make sure to use variables or screen output to display your results.
- 5). Run your program. Depending on your programming language, you may have to compile your code into an executable file. Interpreted languages like Python, however, can be run immediately provided you also have an interpreter installed.
SHARE