|
@@ -128,7 +128,7 @@ The skeleton for the program also includes the `test_BBPlayer` function that doe
|
128
|
128
|
|
129
|
129
|
3. Study and understand the code in the `main.cpp` file, including the code that is commented.
|
130
|
130
|
|
131
|
|
-###Exercise 1: Define the `BBPlayer` class
|
|
131
|
+### Exercise 2 - Define the `BBPlayer` class
|
132
|
132
|
|
133
|
133
|
1. Define the `BBPlayer` class with the specifications included above. For each one of the methods that are specified above:
|
134
|
134
|
|
|
@@ -140,51 +140,51 @@ The skeleton for the program also includes the `test_BBPlayer` function that doe
|
140
|
140
|
|
141
|
141
|
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.
|
142
|
142
|
|
143
|
|
----
|
|
143
|
+ ---
|
144
|
144
|
|
145
|
145
|
|
146
|
|
-![figure1.png](images/figure1.png)
|
|
146
|
+ ![figure1.png](images/figure1.png)
|
147
|
147
|
|
148
|
148
|
|
149
|
|
-**Figure 1.** Example of the window you should obtain if the code passes the unit tests.
|
|
149
|
+ **Figure 1.** Example of the window you should obtain if the code passes the unit tests.
|
150
|
150
|
|
151
|
|
----
|
|
151
|
+ ---
|
152
|
152
|
|
153
|
153
|
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.
|
154
|
154
|
|
155
|
|
----
|
|
155
|
+ ---
|
156
|
156
|
|
157
|
157
|
|
158
|
|
-![figure2.png](images/figure2.png)
|
|
158
|
+ ![figure2.png](images/figure2.png)
|
159
|
159
|
|
160
|
160
|
|
161
|
|
-**Figure 2.** Example of the start of the window you should obtain if the program functions correctly.
|
|
161
|
+ **Figure 2.** Example of the start of the window you should obtain if the program functions correctly.
|
162
|
162
|
|
163
|
|
----
|
|
163
|
+ ---
|
164
|
164
|
|
165
|
165
|
|
166
|
|
-![figure3.png](images/figure3.png)
|
|
166
|
+ ![figure3.png](images/figure3.png)
|
167
|
167
|
|
168
|
168
|
|
169
|
|
-**Figure 3.** Example of the window you should obtain at the end of the program if it is working correctly.
|
|
169
|
+ **Figure 3.** Example of the window you should obtain at the end of the program if it is working correctly.
|
170
|
170
|
|
171
|
|
----
|
|
171
|
+ ---
|
172
|
172
|
|
173
|
|
-**IMPORTANT:** You SHOULD NOT make any changes in the `main` and `test_BBPlayer` functions, aside from removing the comments.
|
|
173
|
+ **IMPORTANT:** You SHOULD NOT make any changes in the `main` and `test_BBPlayer` functions, aside from removing the comments.
|
174
|
174
|
|
175
|
|
----
|
|
175
|
+ ---
|
176
|
176
|
|
177
|
|
----
|
|
177
|
+ ---
|
178
|
178
|
|
179
|
|
-##Deliverables
|
|
179
|
+## Deliverables
|
180
|
180
|
|
181
|
|
-Use "Deliverables" in Moodle to hand in the `main.cpp` file. Remember to use good programming techniques, include the name of the programmers involved, and document your program.
|
|
181
|
+Use "Deliverable" in Moodle to hand in the `main.cpp` file. Remember to use good programming techniques, include the name of the programmers involved, and document your program.
|
182
|
182
|
|
183
|
183
|
---
|
184
|
184
|
|
185
|
185
|
---
|
186
|
186
|
|
187
|
|
-##References
|
|
187
|
+## References
|
188
|
188
|
|
189
|
189
|
[1] http://www.telegraph.co.uk/sport/olympics/basketball/9348826/London-2012-Olympics-Temi-Fagbenle-in-Team-GB-womens-basketball-squad.html
|
190
|
190
|
|