This is a very simple console application that I completed for a class assignment. It is shown here to illustrate my coding style, structure, and commenting. This example is considered Level 1 – Easy. The application displays temperature conversion tables.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Assignment2
demo
Assignment2.sln
README.md

README.md

TemperatureConverter

This is a very simple console application that I completed for a class assignment. It is shown here to illustrate my coding style, structure, and commenting. This example is considered Level 1 – Easy. The application displays temperature conversion tables.

The main objectives of this assignment were:

  • To exercise with conditional and iteration algorithms
  • To learn how to use string.Format
  • To work with methods having parameters and a return type.

The program displays a list of temperatures in Celsius degrees converted to Fahrenheit and vice versa. A menu is provided for the user to choose the type of conversion: The menu repeats until the user chooses 0 to exit.

When option 1 is chosen, the program calculates and displays a list of values between 0 and 212 degrees in Fahrenheit converted to Celsius degrees as shown in the next image. When option 2 is selected, the program lists values from 0 to 100 Celsius converted to Fahrenheit degrees.

Use the conversion formulas:

F = 9/5 * C + 32

C = 5/9 *(F - 32)