Chapter 61 Programming Exercises


Exercise 1 --- Temperature Conversion

Modify the temperature conversion program so that it converts Celsius to Fahrenheit. Use the formula:

fahr = celsius*9/5 + 32

Click here to go back to the main menu.

Exercise 2 -- Two Way Conversion

Add two buttons to the temperature conversion program. Clicking one button converts Fahrenheit to Celsius, clicking the other converts Celsius to Fahrenheit. It would help the user to have a "clear" button that clears the text in both text fields.

Click here to go back to the main menu.