Skip to content

Commit deead0a

Browse files
committed
added line numbers w/Matt
1 parent 0a102db commit deead0a

File tree

7 files changed

+17
-16
lines changed

7 files changed

+17
-16
lines changed
0 Bytes
Binary file not shown.

TeachingKidsProgramming/src/org/teachingkidsprogramming/section02methods/TriangleShell.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ public static void main(String[] args)
77
{
88
// Show the tortoise --#1
99
// Make the tortoise go as fast as possible --#7
10-
// Do the following 60 times --#8
10+
// Do the following 60 times --#8.1
1111
// Change the color of the line the tortoise draws to a random color --#10
1212
// Increase the current length of the side by 4 pixels --#9
1313
// drawTriangle (recipe below) --#6
1414
// ------------- Recipe for drawTriangle --#5
15-
// Do the following 3 times --#3
15+
// Do the following 3 times --#3.1
1616
// Move the tortoise the current length of a side --#4
1717
// Turn the tortoise 1/3rd of 360 degrees --#2
18-
// Repeat
18+
// Repeat --#3.2
1919
// ------------- End of drawTriangle recipe --#5
2020
// Turn the tortoise 1/60th of 360 degrees to the right --#11
21-
// Repeat
21+
// Repeat --#8.2
2222
}
2323
// Related Videos:
2424
// Sub recipe-> Method : http://youtu.be/C6fnqjceVcs

TeachingKidsProgramming/src/org/teachingkidsprogramming/section04mastery/DigiFlower.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ public static void main(String[] args)
99
// Make the background silver --#8
1010
// Make the line the tortoise draws 3 pixels wide --#20
1111
// createColorPalette (recipe below) --#9
12-
// Do the following 15 times --#19
12+
// Do the following 15 times --#19.1
1313
// drawOctogon (recipe below) --#10
1414
// Turn the tortoise 1/15th of 360 degrees to the right --#18
15-
// Repeat
15+
// Repeat --#19.2
1616
// ------------- Recipe for createColorPalette --#9
1717
// Color 1 is red --#3
1818
// Color 2 is dark orange --#11
@@ -27,10 +27,10 @@ public static void main(String[] args)
2727
// Add color 2 to the color wheel --#16
2828
// Add color 1 to the color wheel --#17
2929
// ------------- Recipe for drawOctogon --#10
30-
// Do the following 8 times --#6
30+
// Do the following 8 times --#6.1
3131
// Change the color of the line the tortoise draws to the next color on the color wheel --#4
3232
// Move the tortoise 50 pixels --#2
3333
// Turn the tortoise 1/8th of 360 degrees to the right --#5
34-
// Repeat
34+
// Repeat --#6.2
3535
}
3636
}

TeachingKidsProgramming/src/org/teachingkidsprogramming/section04mastery/SpiderWebQuiz.java renamed to TeachingKidsProgramming/src/org/teachingkidsprogramming/section05recursion/SpiderWebQuiz.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.teachingkidsprogramming.section04mastery;
1+
package org.teachingkidsprogramming.section05recursion;
22

33
import org.teachingkidsprogramming.recipes.quizzes.graders.SpiderQuiz;
44
import org.teachingkidsprogramming.recipes.quizzes.graders.SpiderWebQuizGrader;

TeachingKidsProgramming/src/org/teachingkidsprogramming/section06modelviewcontroller/DeepDive06ModelViewController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public class DeepDive06ModelViewController
2424
public void stringsCanBeArrays() throws Exception
2525
{
2626
String[] words = {"happy ", ___};
27-
Assert.assertEquals("happy baby", words);
27+
String result = words[0] + words[1];
28+
Assert.assertEquals("happy baby", result);
2829
}
2930
@Test
3031
public void numbersCanBeStrings() throws Exception

TeachingKidsProgramming/src/org/teachingkidsprogramming/section07events/DeepDive07Events.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ public class DeepDive07Events
2626
// 'this' - instance(s) - multiple Tortoises
2727
// exploring Object methods other than Tortoise---Circle (TKP)...methods
2828
@Test
29-
public void concatenateString() throws Exception
29+
public void stringsCanBeArrays() throws Exception
3030
{
31-
//create a new string from the strings "happy " + "baby"
3231
String[] words = {"happy ", ___};
33-
Assert.assertEquals("happy baby", words);
32+
String result = words[0] + words[1];
33+
Assert.assertEquals("happy baby", result);
3434
}
3535
@Test
3636
public void twoTortoises() throws Exception

TeachingKidsProgramming/src/org/teachingkidsprogramming/section08tdd/DeepDive08TDD.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ public class DeepDive08TDD
2626
// type conversion
2727
// autoboxing
2828
@Test
29-
public void concatenateString() throws Exception
29+
public void stringsCanBeArrays() throws Exception
3030
{
31-
//create a new string from the strings "happy " + "baby"
3231
String[] words = {"happy ", ___};
33-
Assert.assertEquals("happy baby", words);
32+
String result = words[0] + words[1];
33+
Assert.assertEquals("happy baby", result);
3434
}
3535
/**
3636
* Ignore the following, It's needed to run the homework

0 commit comments

Comments
 (0)