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. experience analyzing business IT needs and engineering solutions in electric utilities, pharmaceutical, 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 implementation and testing of the IT solutions. She has also delivered technical training, user documentation, and developed new business processes for the solutions. Kathleen also has strengths in software development, programming, testing vendor applications, databases, creating business efficiency tools, and IT solutions with proficiency in technologies such as C# .NET applications, Visual Basic (VB.NET), SQL, Visual Studio, Oracle, XML, Microsoft applications, and more.