The labs starting last Thursday focused on Strings and Arrays (OF chapter 4 and UM chapter C); the labs starting this Thursday will feature the multimedia on Operating systems and Networks (UM chapter 7). You will also work on the design of continue the of the War program. (You need to learn how about Arrays and ArrayList to design the War program.)
Homework exercises (hand in .java source code for any programming
exercises):
CSc13 exercises: OF 4.3, 4.4. 4.23, 4.24, UM
C.1, C.4, C.15, 6.6, 6.15, 6.19, 7.3, 7.8, 7.15, 7.28, 7.33, 7.36, 7.38.
CSc14: exercises OF 4.3, 4.4, 4.13, 4.16, 4.23, 4.24, UM
C.1, C.4, C.9, C.11, C.12, C.15, C.19, 6.6, 6.7, 6.9, 6.15, 6.19, 7.8,
7.15, 7.23, 7.28, 7.33, 7.36. For exercise C.9, I supply the program reverse.java, which I discussed in class, as
a similar example. Exercise 6.9 refers to BinarySearch.java; use H:\ucomp\chapC\BiSearch\BiSearch.java.
Pair programming recommended (though not required) for C.9 and 6.7.
For 6.7, you may modify H:\ucomp\chapC\SelectionSort\SelectionSort.java.
Below I supply my version of a use case analysis for the "War" game, plus a partial design. As part of this assignment, you will complete the design. Note: both CSE13 and CSE14 students will work on the design part of this project for this assignment. CSE14 students only will implement it, as part their final homeework assignment (not yet!). Also, it is strongly recommended that you work on the "War" game design (and later programming) in pairs. In fact, unless either Faisal Khan or I excuse you from pair design/programming for some legitimate reason which you must explain to one of us, it is required.
Extra credit: C.13 (where it refers to the "previous" chapter, look
at chapter 7, p.21). You can some extra credit for designing a psuedocode
algorithm for this problem (especially CSE13 students), more for implementing
it, more yet for the "extra credit" mentioned in the exercise itself.
Due: Tuesday, 11/19, 1:10PM, hard copy in class, electronic copy in
CSE10 Drop Box (so that TA can review programs if necessary). For pair
designs/programs, each partner should mention their partner's name at the top
of their work. If you need extra time to do this assignment, please put
late work in Faisal Khan's mailbox in 304 Packard Lab.