Assignment 7

Date Assigned: November 28, 2007
Date Due: December 12, 2007

Part I

Develop a JFrame based Java program that will enable the user to enter a double number representing the temperature in degree Fahrenheit and convert it to degree centigrade. The conversion is as follows:

C/5 = (F-32)/9

The conversion action is triggered by a JButton.

A sample Java program that computes the letter grade is found here.

The JApplet version of the above program is found here.. The corresponding HTML file is found here. Make sure that the Java class file for the applet and the html file are at the same location.

Part II

Develop a JFrame based Java program that will enable the user to enter an int number and the program will check if it is a Fibonacci number. The check action is triggered by a JButton.

Part III

Develop JApplet versions of Part I and II.


Sample GUI Example Code