Temperature Conversion Console Application

Temperature Conversion Console Application

My Student Project:ย C# for Beginners : Assignment #2 (Series)

Permission to publish my code submitted for the project assignment was granted by the professor.

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.

Objective:

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)

Demos

Option 1 Temperature Conversion Demo

Option 1 Temperature Conversion Demo

Option 2 Temperature Conversion

Option 2 Temperature Conversion

My Solution Code

You can view and download the GitHub repositoryย here.

You can also download a zip archive of the project codeย here.

Kathleen has 15 yrs. of experience analyzing business IT needs and engineering solutions in payments, electric utilities, pharmaceutical, financial, virtual reality, and internet industries with a variety of technologies. Kathleen's project experience has been diverse ranging from executing the business analysis โ€œdesign phaseโ€ to hands-on development, implementation, and testing of the IT solutions. Kathleen and her husband reside in Indiana with no children, instead living along with their fur babies.