CT218 lab1

http://www.it.nuigalway.ie/~gettrick/courses/CT218/labs/l1.html


For today’s session, you will be completing the “Celsius to Fahrenheit” application.


Your application should use the following formulae to convert the temperatures:


Cels = (Fahr - 32) * 5/9


Fahr = (Cels * 9/5) + 32



Your application should run in a single form (window), which should look something like:




Whenever a Return key press (ASCII code 13) is detected in the Keypress event of either text box, the correct formula should be applied to the number in that text box, and the other text box updated accordingly. (See lecture handout!)


To exit the application, you can use a command button (see above - it’s been captioned “End”). The Click event for this button can be used the exit the application by carrying out the following VB command:


End


© NUI, Galway