Essay on Project Temperature Converter

Submitted By ZAHIDBIPU
Words: 818
Pages: 4

ASA COLLEGE CIT100 – Programming Language Concepts Temperature Converter Dr. Lixin Shao Md. Showkat Hossain Chowdhury

Project Summary
The Temperature Converter is one of the updated program which is created with the all possible features and actions to perform according to user needs. While I was planning to create such a program, the first thing that came to my mind was to make it user friendly and also get accurate calculation of the temperature,.

The world is a global village today and people are moving from one part of the world to another part of the world for business, travel, education and migration. One country’s weather forecast is different from another country. In this situation, we have to spot on while converting the temperature. That’s why we include all the right measurement scale in the program and coded them efficiently so that one can easily get the conversion digits within the earliest possible time. The three scale of temperature conversion measurement have been included here with individual and specific coding. Kelvin is the temperature scale devised and used to measure temperature from the melting point of ice (0 deg Celsius) down to absolute zero, the total absence of heat. Celsius and Fahrenheit are mainly used to measure temperatures from the melting point of ice and up. Zero Kelvin is equal to −273.15 deg Celsius and -459.67 deg Fahrenheit. When Fahrenheit invented his 212 degree temperature scale it was thought that the absolute zero temperature was just 32 degrees of the scale below the melting point of ice. It later transpired that the absolute zero point was much lower, 427.67 deg Fahrenheit lower. The Celsius scale equally divides the temperature range between the melting point of ice and the boiling point of water into 100 equal parts. 0 deg Celsius is equal to 273.15 Kelvins and 32 deg Fahrenheit. The boiling point of water is 100 deg Celsius which is also 373.15 Kelvins and 212 deg Fahrenheit. The SI units are Kelvin and Celsius. Fahrenheit is becoming obsolete in the international arena.
In my project interface I have used a text box where the user will put the number or digits and choose from the combo box whether it is Fahrenheit, Celsius or Kelvin. When the text box will get input and in the Combo Box has its right measurement scale chosen then in the three Yellow labels will show what are the exact conversion values. The conversion values also mentioned just after the three labels on the right side in the Green color labels.

The GUI Design

My Codes with my remarks
Public Class Form1

'A way of temperature calculation according to user selection' Private Sub cboSelect_SelectedIndexChanged(sender As System.Object, e As System.EventArgs ) Handles cboSelect.SelectedIndexChanged, txtInput.TextChanged 'Declare a class level variable of Double data type' Dim dblInput As Double 'Declares 3 variables for temperature measured in Fahrenheit, Celsius and Kelvin' Dim dblF, dblC, dblK As Double 'Converts a string into a Double data type' If Double.TryParse(txtInput.Text, dblInput) = False Then 'Displays 0.00 if Unable to convert user's input into Double data type for all 3 scale variables' lblC.Text = "0.00" lblF.Text = "0.00" lblK.Text = "0.00" Exit Sub End If 'A ways of writing a select case based on the changing value of the Combobox's selected item' Select Case cboSelect.SelectedItem Case "Fahrenheit" 'Input temperature in Fahrenheit' dblF =