|
|
|
|
136
|
|
136
|
|
137
|
d. Run the program and verify that it passed all of the tests. You should obtain a window similar to the one in Figure 1. If your code does not pass all the tests, revise your code. Repeat until your code has passed all of the tests.
|
137
|
d. Run the program and verify that it passed all of the tests. You should obtain a window similar to the one in Figure 1. If your code does not pass all the tests, revise your code. Repeat until your code has passed all of the tests.
|
138
|
|
138
|
|
139
|
- ---
|
|
|
|
|
139
|
+---
|
140
|
|
140
|
|
141
|
![figure1.png](images/figure1.png)
|
141
|
![figure1.png](images/figure1.png)
|
142
|
|
142
|
|
143
|
**Figure 1.** Example of the window you should obtain if the code passes the unit tests.
|
143
|
**Figure 1.** Example of the window you should obtain if the code passes the unit tests.
|
144
|
|
144
|
|
145
|
- ---
|
|
|
|
|
145
|
+---
|
146
|
|
146
|
|
147
|
2. Once you have all of the functions defined and tested, uncomment the code in the `main` function to test the whole program. If the program functions correctly, you should obtain a window that starts similarly to the one in Figure 2 and finishes like the one in Figure 3.
|
147
|
2. Once you have all of the functions defined and tested, uncomment the code in the `main` function to test the whole program. If the program functions correctly, you should obtain a window that starts similarly to the one in Figure 2 and finishes like the one in Figure 3.
|
148
|
|
148
|
|
149
|
- ---
|
|
|
|
|
149
|
+---
|
150
|
|
150
|
|
151
|
- ![figure2.png](images/figure2.png)
|
|
|
152
|
|
151
|
|
|
|
152
|
+![figure2.png](images/figure2.png)
|
153
|
|
153
|
|
154
|
- **Figure 2.** Example of the start of the window you should obtain if the program functions correctly.
|
|
|
155
|
|
154
|
|
156
|
- ---
|
|
|
|
|
155
|
+**Figure 2.** Example of the start of the window you should obtain if the program functions correctly.
|
|
|
156
|
+
|
|
|
157
|
+---
|
|
|
158
|
+
|
157
|
|
159
|
|
158
|
![figure3.png](images/figure3.png)
|
160
|
![figure3.png](images/figure3.png)
|
159
|
|
161
|
|
|
|
162
|
+
|
160
|
**Figure 3.** Example of the window you should obtain at the end of the program if it is working correctly.
|
163
|
**Figure 3.** Example of the window you should obtain at the end of the program if it is working correctly.
|
161
|
|
164
|
|
162
|
---
|
165
|
---
|