|
@@ -1,6 +1,6 @@
|
1
|
1
|
#Part 1 Rotate Array
|
2
|
2
|
|
3
|
|
-## Objectives
|
|
3
|
+###Objectives
|
4
|
4
|
|
5
|
5
|
1. To demonstrate your understanding of objects and functions
|
6
|
6
|
2. To demonstrate your understanding of controlling execution
|
|
@@ -8,7 +8,7 @@
|
8
|
8
|
4. To demonstrate your understanding of reusing classes
|
9
|
9
|
|
10
|
10
|
|
11
|
|
-## Overview
|
|
11
|
+### Overview
|
12
|
12
|
|
13
|
13
|
Finish the class RotateList in the RotateList package make it subclasse the built-in List class. (Hint extends ?????)
|
14
|
14
|
Write a function that rotates a list by k elements.
|
|
@@ -18,19 +18,19 @@
|
18
|
18
|
Try solving this without creating a copy of the list.
|
19
|
19
|
How many swap or move operations do you need?
|
20
|
20
|
|
21
|
|
-## Unit Test
|
|
21
|
+### Unit Test
|
22
|
22
|
UML is required
|
23
|
23
|
Unit test in place before proceeding with code
|
24
|
24
|
Make sure you test EVERY public method
|
25
|
25
|
|
26
|
|
-## Instructions
|
|
26
|
+### Instructions
|
27
|
27
|
|
28
|
28
|
1. In your unit test class, initialize your custom List with values
|
29
|
29
|
2. In your unit test class call the method that rotates your array
|
30
|
30
|
|
31
|
31
|
#Part 2 Humans and Superhumans
|
32
|
32
|
|
33
|
|
-## Objectives
|
|
33
|
+### Objectives
|
34
|
34
|
|
35
|
35
|
1. To demonstrate your understanding of objects and functions
|
36
|
36
|
2. To demonstrate your understanding of controlling execution
|
|
@@ -38,48 +38,24 @@ Make sure you test EVERY public method
|
38
|
38
|
4. To demonstrate your understanding of reusing classes
|
39
|
39
|
|
40
|
40
|
|
41
|
|
-## Overview
|
|
41
|
+### Overview
|
42
|
42
|
|
43
|
43
|
Complete the 'Human' class in the Superpowers Package that has fields for: name, age, gender, occupation, and address. Also create methods for retreiving and outputing this data to screen.
|
44
|
44
|
|
45
|
45
|
Then create a SuperHuman class and UNIT TEST that subclasses the first with fields for good or bad, hero name, super ability. As before, create methods for retrieving field data and printing to screen.
|
46
|
46
|
|
47
|
|
-## Unit Test
|
|
47
|
+### Unit Test
|
48
|
48
|
UML is required
|
49
|
49
|
Unit test in place before proceeding with code
|
50
|
50
|
Make sure you test EVERY public method
|
51
|
51
|
|
52
|
|
-## Instructions
|
|
52
|
+### Instructions
|
53
|
53
|
|
54
|
54
|
1. In your unit test initialize a human and superhuman instances
|
55
|
55
|
2. Demonstrate calling methods inherited from Human on your SuperHuman instances
|
56
|
56
|
|
57
|
|
-#Part 3 Product Inventory Project
|
58
|
|
-
|
59
|
|
-## Objectives
|
60
|
|
-
|
61
|
|
-1. To demonstrate your understanding of objects and functions
|
62
|
|
-2. To demonstrate your understanding of controlling execution
|
63
|
|
-3. To demonstrate your understanding of access control
|
64
|
|
-4. To demonstrate your understanding of reusing classes
|
65
|
|
-
|
66
|
|
-
|
67
|
|
-## Overview
|
68
|
|
-
|
69
|
|
-Create an application which manages an inventory of products. Create a product class which has a price, id, and quantity on hand. Then create an inventory class which keeps track of various products and can sum up the inventory value.
|
70
|
|
-
|
71
|
|
-## Unit Test
|
72
|
|
-
|
73
|
|
-UML is required
|
74
|
|
-Unit test in place before proceeding with code
|
75
|
|
-
|
76
|
|
-## Instructions
|
77
|
|
-
|
78
|
|
-1. In your main class initialize your manager and populate your inventory
|
79
|
|
-2. Demonstrate calling methods on your manager
|
80
|
|
-3. Print all output to screen
|
81
|
57
|
|
82
|
|
-#Part 4 Class Manager
|
|
58
|
+#Part 3 Class Manager
|
83
|
59
|
|
84
|
60
|
## Product Inventory Project
|
85
|
61
|
|