Directions: Using what you have learned in the Class Lessons – GUI Programming section of the class web site create BlueJ GUI applications for the problems shown below.
- Create an application that allows a user to enter the temperature in Fahrenheit and then converts the temperature to Celsius. NOTE: Celsius = (Fahrenheit – 32) / 9 * 5
|
The program will need:
- 1 JFrame object
- 2 Label objects
- 2 JButton objects
- 1 TextField object
- 1 FlowLayout object
- 1 Content object
|
- Create an application that calculates the total cost of making a pizza using the following rules:
Labor cost is $0.75 per pizza, regardless of size
Rent cost is $1.00 per pizza, regardless of size
Materials is $0.05*diameter*diameter (measured in inches)
|
This program will need:
- 1 JFrame object
- 2 Label objects
- 2 JButton objects
- 1 TextField object
- 1 FlowLayout object
- 1 Content object
|
|