CS 120 Lab
09
The getBoolean( ) method
Tom Linton, http://www.cs.moravian.edu/~linton
Moravian College, Spring 1999
The assignment for today is to finish up your Roulette.java
lab from before break, and complete the modified Programming
Project 6 on page 242 of the text, Problem Solving with Java, by
Koffman and Wolz. The modified version is shown below.
-
Write a program, BreadMachine.java, which allows the user to designate
a bread type (white or sweet); whether the loaf is double (or not); and
if the baking is manual (or not). Use the SimpleGUI method getBoolean
to read these data into boolean data fields. The following table details
the time chart for your bread machine. Display an output line for each
step, showing the last completed, and the total time since start. If the
loaf size is double, increase the baking time by 50%. If baking is manual,
your display should stop after the loaf-shaping cycle and instruct the
user to remove the dough for manual baking.
Bread Time Chart
| Operation |
White Bread |
Sweet Bread |
| Primary Kneading |
15 mins
|
20 mins
|
| Primary Rising |
60 mins
|
60 mins
|
| Secondary Kneading |
18 mins
|
33 mins
|
| Secondary Rising |
20 mins
|
30 mins
|
| Loaf Shaping |
2 seconds
|
2 seconds
|
| Final Rising |
75 mins
|
75 mins
|
| Baking |
45 mins
|
35 mins
|
| Cooling |
30 mins
|
30 mins
|