Overview | Schedule | Announcements | Resources | Assignments | Home |
Observe |
Examine the project's class diagram:
|
Answer |
|
Do |
Complete task 7 of Project 3. |
Answer |
|
Do |
Complete task 1 of Project 3. The loadFileParameters() method can be used instead of loadDefaultParameters() to initialize the simulation parameter fields. This method reads values for these fields from a text file instead of setting them within the simulation itself as in loadDefaultParameters(). Create an instance of Bank. Invoke the loadDefaultParameters() method and then inspect the Bank object. Compare the simulation parameter values with those in the loadDefaultParameters() method. Now invoke the loadFileParameters() method. A file open dialog box will appear. Choose the lab8parameters.txt file in the Bank folder. Now inspect the Bank object. Have the values of the simulation fields changed? How would you check to see that they are the correct values? |
Overview | Schedule | Announcements | Resources | Assignments | Home |
DePauw
University , Computer Science
Department , Spring 2005
Maintained by Brian
Howard ( bhoward@depauw.edu
).
Last updated