From 5adb39ca25196556b50cffb0bfa51f38caaf0138 Mon Sep 17 00:00:00 2001 From: S Date: Tue, 6 Jun 2017 15:26:19 +0100 Subject: [PATCH 01/22] {"types":"C","runs":0} --- FindRange.java | 65 +++++++++++++++++++++++++++++++++++++------------- 1 file changed, 49 insertions(+), 16 deletions(-) diff --git a/FindRange.java b/FindRange.java index b662530..c91ccd6 100755 --- a/FindRange.java +++ b/FindRange.java @@ -1,16 +1,49 @@ -/* - * File: FindRange.java - * Name: - * Section Leader: - * -------------------- - * This file is the starter file for the FindRange problem. - */ - -import acm.program.*; - -public class FindRange extends ConsoleProgram { - public void run() { - /* You fill this in */ - } -} - +/* + * File: FindRange.java + * Name: + * Section Leader: + * -------------------- + * This file is the starter file for the FindRange problem. + */ + +import acm.program.*; + +//Program to find the largest and the smallest numbers + +public class FindRange extends ConsoleProgram { + + private int SENTINEL = 0; + + public void run() { + + println("This Program finds the largest and smallest numbers"); + + int numberInput =1; + int largeNum = 0; + int smallNum = 1000000000; + + + + + while (numberInput!=0){ + + if (numberInput == 0){ + println("You have not entered any valid number"); + } else { + numberInput = readInt("?"); + + + if (numberInput > largeNum) { + largeNum = numberInput; + } + + if ((numberInput < smallNum) && (numberInput != SENTINEL)) { + smallNum = numberInput; + } + } + println ("Largest Number is " + largeNum); + println ("Smallest Number is " + smallNum); + } + } + +} From e8f05b78ec9379982eacadc36ffbf0e66e9bf713 Mon Sep 17 00:00:00 2001 From: S Date: Tue, 6 Jun 2017 15:26:30 +0100 Subject: [PATCH 02/22] {"types":"C","runs":0} --- Hailstone.java | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/Hailstone.java b/Hailstone.java index 2c7a16e..9a81146 100755 --- a/Hailstone.java +++ b/Hailstone.java @@ -1,16 +1,22 @@ -/* - * File: Hailstone.java - * Name: - * Section Leader: - * -------------------- - * This file is the starter file for the Hailstone problem. - */ - -import acm.program.*; - -public class Hailstone extends ConsoleProgram { - public void run() { - /* You fill this in */ - } -} - +/* + * File: Hailstone.java + * Name: + * Section Leader: + * -------------------- + * This file is the starter file for the Hailstone problem. + */ + +import acm.program.*; + +public class Hailstone extends ConsoleProgram { + public void run() { + + + int inputNumber = readInt("?"); + + if (inputNumber != 0) { + //for (int i = 0; i<) + } + } +} + From bc2d4089053ae5edfc62e9b8eb48044507df528d Mon Sep 17 00:00:00 2001 From: S Date: Tue, 6 Jun 2017 15:26:41 +0100 Subject: [PATCH 03/22] {"types":"C","runs":0} --- ProgramHierarchy.java | 49 +++++++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/ProgramHierarchy.java b/ProgramHierarchy.java index b666b6d..85fe2d2 100755 --- a/ProgramHierarchy.java +++ b/ProgramHierarchy.java @@ -1,18 +1,31 @@ -/* - * File: ProgramHierarchy.java - * Name: - * Section Leader: - * --------------------------- - * This file is the starter file for the ProgramHierarchy problem. - */ - -import acm.graphics.*; -import acm.program.*; -import java.awt.*; - -public class ProgramHierarchy extends GraphicsProgram { - public void run() { - /* You fill this in. */ - } -} - +/* + * File: ProgramHierarchy.java + * Name: + * Section Leader: + * --------------------------- + * This file is the starter file for the ProgramHierarchy problem. + */ + +import acm.graphics.*; +import acm.program.*; +import java.awt.*; + +public class ProgramHierarchy extends GraphicsProgram { + public void run() { + + int SENTINEL; + int n; + SENTINEL = readInt("Enter Sentinel Value - "); + + for (int i=0; i Date: Tue, 6 Jun 2017 15:26:56 +0100 Subject: [PATCH 04/22] {"types":"C","runs":0} --- Pyramid.java | 83 ++++++++++++++++++++++++++++++++-------------------- 1 file changed, 51 insertions(+), 32 deletions(-) diff --git a/Pyramid.java b/Pyramid.java index cf32252..5b3be43 100755 --- a/Pyramid.java +++ b/Pyramid.java @@ -1,32 +1,51 @@ -/* - * File: Pyramid.java - * Name: - * Section Leader: - * ------------------ - * This file is the starter file for the Pyramid problem. - * It includes definitions of the constants that match the - * sample run in the assignment, but you should make sure - * that changing these values causes the generated display - * to change accordingly. - */ - -import acm.graphics.*; -import acm.program.*; -import java.awt.*; - -public class Pyramid extends GraphicsProgram { - -/** Width of each brick in pixels */ - private static final int BRICK_WIDTH = 30; - -/** Width of each brick in pixels */ - private static final int BRICK_HEIGHT = 12; - -/** Number of bricks in the base of the pyramid */ - private static final int BRICKS_IN_BASE = 14; - - public void run() { - /* You fill this in. */ - } -} - +/* + * File: Pyramid.java + * Name: + * Section Leader: + * ------------------ + * This file is the starter file for the Pyramid problem. + * It includes definitions of the constants that match the + * sample run in the assignment, but you should make sure + * that changing these values causes the generated display + * to change accordingly. + */ + +import acm.graphics.*; +import acm.program.*; +import java.awt.*; + +public class Pyramid extends GraphicsProgram { + +/** Width of each brick in pixels */ + private static final int BRICK_WIDTH = 30; + +/** Width of each brick in pixels */ + private static final int BRICK_HEIGHT = 12; + +/** Number of bricks in the base of the pyramid */ + private static final int BRICKS_IN_BASE = 14; + + + private double xMidPoint; + private double yMidPoint; + private double xStartPoint; + private double yStartPoint; + private double xEndPoint; + + + public void run() { + xMidPoint = getWidth()/2; + yMidPoint = getHeight()/2; + xStartPoint = (xMidPoint - (BRICK_WIDTH*(BRICKS_IN_BASE)/2)); + yStartPoint = (getHeight()-(BRICK_HEIGHT*14)); + //xEndPoint = xStartPoint + (14*30); + + for (double i=xStartPoint; i Date: Tue, 6 Jun 2017 15:27:08 +0100 Subject: [PATCH 05/22] {"types":"C","runs":0} --- PythagoreanTheorem.java | 43 +++++++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/PythagoreanTheorem.java b/PythagoreanTheorem.java index 5b4f30d..3fea88a 100755 --- a/PythagoreanTheorem.java +++ b/PythagoreanTheorem.java @@ -1,15 +1,28 @@ -/* - * File: PythagoreanTheorem.java - * Name: - * Section Leader: - * ----------------------------- - * This file is the starter file for the PythagoreanTheorem problem. - */ - -import acm.program.*; - -public class PythagoreanTheorem extends ConsoleProgram { - public void run() { - /* You fill this in */ - } -} +/* + * File: PythagoreanTheorem.java + * Name: + * Section Leader: + * ----------------------------- + * This file is the starter file for the PythagoreanTheorem problem. + */ + +import acm.program.*; + +public class PythagoreanTheorem extends ConsoleProgram { + + + public void run() { + + + int a = readInt("Input First Side of Triangle - "); + int b = readInt ("Input Second Side of Triangle - "); + + double s = 0; + s = Math.sqrt((a*a)+(b*b)); + + println("a = " + a); + println("b = " + b); + println("s = " + s); + } +} + From 71f908cbf710fe6beb88ab6d4217a5f760511ab7 Mon Sep 17 00:00:00 2001 From: S Date: Tue, 6 Jun 2017 15:27:20 +0100 Subject: [PATCH 06/22] {"types":"C","runs":0} --- Target.java | 77 +++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 60 insertions(+), 17 deletions(-) diff --git a/Target.java b/Target.java index 44c1f34..c67970c 100755 --- a/Target.java +++ b/Target.java @@ -1,17 +1,60 @@ -/* - * File: Target.java - * Name: - * Section Leader: - * ----------------- - * This file is the starter file for the Target problem. - */ - -import acm.graphics.*; -import acm.program.*; -import java.awt.*; - -public class Target extends GraphicsProgram { - public void run() { - /* You fill this in. */ - } -} +/* + * File: Target.java + * Name: + * Section Leader: + * ----------------- + * This file is the starter file for the Target problem. + */ + +import acm.graphics.*; +import acm.program.*; +import java.awt.*; + +public class Target extends GraphicsProgram { + private double inch = 72; + + public void run() { + + firstCircle(); + secondCircle(); + thirdCircle(); + + } + + public void firstCircle(){ + double radius = inch * 1; + double x = (getWidth()/2) - radius/2; + double y = ((getHeight()/2) - radius/2); + + GOval firstOval = new GOval (x, y, radius, radius); + add(firstOval); + firstOval.setFilled(true); + firstOval.setFillColor(Color.RED); + } + + public void secondCircle() { + double radius = inch * 0.65; + double x = ((getWidth())/2) - radius/2; + double y = ((getHeight()/2) - radius/2); + + GOval secondOval = new GOval (x, y, radius, radius); + add(secondOval); + secondOval.setFilled(true); + secondOval.setColor(Color.WHITE); + secondOval.setFillColor(Color.WHITE); + } + + + public void thirdCircle() { + double radius = inch * 0.3; + double x = (getWidth()/2) - radius/2; + double y = ((getHeight()/2) - radius/2); + + GOval thirdOval = new GOval (x, y, radius, radius); + add(thirdOval); + thirdOval.setFilled(true); + thirdOval.setFillColor(Color.RED); + } + + +} From bfa008845aa91a4d66068dbbcfa99fa11f6044af Mon Sep 17 00:00:00 2001 From: S Date: Tue, 6 Jun 2017 15:27:42 +0100 Subject: [PATCH 07/22] {"types":"C","runs":0} From caddb533009fbbc42f1b6f92307bb54f08a96496 Mon Sep 17 00:00:00 2001 From: G~man Date: Tue, 6 Jun 2017 15:28:45 +0100 Subject: [PATCH 08/22] My Assignment two --- .settings/org.eclipse.jdt.core.prefs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .settings/org.eclipse.jdt.core.prefs diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..ef8a789 --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,12 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.6 From a44d0a265bb35f8704986bd6a8535059f2765116 Mon Sep 17 00:00:00 2001 From: S Date: Tue, 6 Jun 2017 15:53:08 +0100 Subject: [PATCH 09/22] {"types":"C","runs":0} --- Pyramid.java | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/Pyramid.java b/Pyramid.java index 5b3be43..3329fda 100755 --- a/Pyramid.java +++ b/Pyramid.java @@ -26,26 +26,24 @@ public class Pyramid extends GraphicsProgram { private static final int BRICKS_IN_BASE = 14; - private double xMidPoint; - private double yMidPoint; - private double xStartPoint; - private double yStartPoint; - private double xEndPoint; - - + public void run() { - xMidPoint = getWidth()/2; - yMidPoint = getHeight()/2; - xStartPoint = (xMidPoint - (BRICK_WIDTH*(BRICKS_IN_BASE)/2)); - yStartPoint = (getHeight()-(BRICK_HEIGHT*14)); - //xEndPoint = xStartPoint + (14*30); + + int totalBrick = BRICKS_IN_BASE; + int numRow = BRICKS_IN_BASE; + + double y = getHeight() - BRICK_HEIGHT; - for (double i=xStartPoint; i 0) { + double x = (getWidth())/2 - (BRICK_WIDTH)/2; + + for (int i=totalBrick; i<0; i--) { + GRect myBrick = new GRect (x, y, BRICK_WIDTH, BRICK_HEIGHT) + x += BRICK_WIDTH; + } } + } } From 8363fc5083607af56ce425e6158ff34b47ff45c1 Mon Sep 17 00:00:00 2001 From: S Date: Tue, 6 Jun 2017 15:53:41 +0100 Subject: [PATCH 10/22] {"types":"C","runs":1} --- Pyramid.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Pyramid.java b/Pyramid.java index 3329fda..59b1b80 100755 --- a/Pyramid.java +++ b/Pyramid.java @@ -38,7 +38,8 @@ public void run() { double x = (getWidth())/2 - (BRICK_WIDTH)/2; for (int i=totalBrick; i<0; i--) { - GRect myBrick = new GRect (x, y, BRICK_WIDTH, BRICK_HEIGHT) + GRect myBrick = new GRect (x, y, BRICK_WIDTH, BRICK_HEIGHT); + add(myBrick); x += BRICK_WIDTH; } } From 5b25cf0a4b7d39175c37e423fd0da7dc507d293e Mon Sep 17 00:00:00 2001 From: S Date: Tue, 6 Jun 2017 15:54:06 +0100 Subject: [PATCH 11/22] {"types":"C","runs":2} --- Pyramid.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pyramid.java b/Pyramid.java index 59b1b80..9487914 100755 --- a/Pyramid.java +++ b/Pyramid.java @@ -35,7 +35,7 @@ public void run() { double y = getHeight() - BRICK_HEIGHT; while (numRow > 0) { - double x = (getWidth())/2 - (BRICK_WIDTH)/2; + double x = (getWidth())/2 - (BRICK_WIDTH*totalBrick)/2; for (int i=totalBrick; i<0; i--) { GRect myBrick = new GRect (x, y, BRICK_WIDTH, BRICK_HEIGHT); From b2ef58c6643dcd2f46a96b07fa215436e46689f1 Mon Sep 17 00:00:00 2001 From: S Date: Tue, 6 Jun 2017 15:54:55 +0100 Subject: [PATCH 12/22] {"types":"C","runs":3} --- Pyramid.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Pyramid.java b/Pyramid.java index 9487914..145e640 100755 --- a/Pyramid.java +++ b/Pyramid.java @@ -42,6 +42,9 @@ public void run() { add(myBrick); x += BRICK_WIDTH; } + totalBrick--; + numRow--; + y-=BRICK_HEIGHT; } From db3dae03d1a7217ff6358307363b6ba257d110b9 Mon Sep 17 00:00:00 2001 From: S Date: Tue, 6 Jun 2017 15:56:04 +0100 Subject: [PATCH 13/22] {"types":"C","runs":4} --- Pyramid.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pyramid.java b/Pyramid.java index 145e640..eace2b8 100755 --- a/Pyramid.java +++ b/Pyramid.java @@ -37,7 +37,7 @@ public void run() { while (numRow > 0) { double x = (getWidth())/2 - (BRICK_WIDTH*totalBrick)/2; - for (int i=totalBrick; i<0; i--) { + for (int i=totalBrick; i<=0; i--) { GRect myBrick = new GRect (x, y, BRICK_WIDTH, BRICK_HEIGHT); add(myBrick); x += BRICK_WIDTH; From ae44f6fdf14e085ae6d8e5339622044493a73494 Mon Sep 17 00:00:00 2001 From: S Date: Wed, 7 Jun 2017 16:42:02 +0100 Subject: [PATCH 14/22] {"types":"C","runs":5} --- Pyramid.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Pyramid.java b/Pyramid.java index eace2b8..4d16858 100755 --- a/Pyramid.java +++ b/Pyramid.java @@ -29,23 +29,7 @@ public class Pyramid extends GraphicsProgram { public void run() { - int totalBrick = BRICKS_IN_BASE; - int numRow = BRICKS_IN_BASE; - double y = getHeight() - BRICK_HEIGHT; - - while (numRow > 0) { - double x = (getWidth())/2 - (BRICK_WIDTH*totalBrick)/2; - - for (int i=totalBrick; i<=0; i--) { - GRect myBrick = new GRect (x, y, BRICK_WIDTH, BRICK_HEIGHT); - add(myBrick); - x += BRICK_WIDTH; - } - totalBrick--; - numRow--; - y-=BRICK_HEIGHT; - } } From d7994b25ea336d459db5c723deb0d96494effa12 Mon Sep 17 00:00:00 2001 From: S Date: Wed, 7 Jun 2017 16:44:40 +0100 Subject: [PATCH 15/22] {"types":"C","runs":5} --- Pyramid.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Pyramid.java b/Pyramid.java index 4d16858..1815cab 100755 --- a/Pyramid.java +++ b/Pyramid.java @@ -29,9 +29,30 @@ public class Pyramid extends GraphicsProgram { public void run() { + buildPyramid(); + } + + private void buildPyramid() { + int totalBrick = BRICKS_IN_BASE; + int numRow = BRICKS_IN_BASE; + + double y = getHeight() - BRICK_HEIGHT; + while (numRow > 0) { + double x = (getWidth())/2 - (BRICK_WIDTH*totalBrick)/2; + + for (int i=totalBrick; i<0; i--) { + GRect myBrick = new GRect (x, y, BRICK_WIDTH, BRICK_HEIGHT); + add(myBrick); + x += BRICK_WIDTH; + } + totalBrick--; + numRow--; + y-=BRICK_HEIGHT; + } } + } From 5040215708834b7acdd2f2d5b336b894aa40b67d Mon Sep 17 00:00:00 2001 From: S Date: Wed, 7 Jun 2017 16:49:33 +0100 Subject: [PATCH 16/22] {"types":"C","runs":6} --- Pyramid.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pyramid.java b/Pyramid.java index 1815cab..f47104c 100755 --- a/Pyramid.java +++ b/Pyramid.java @@ -42,7 +42,7 @@ private void buildPyramid() { while (numRow > 0) { double x = (getWidth())/2 - (BRICK_WIDTH*totalBrick)/2; - for (int i=totalBrick; i<0; i--) { + for (int i=totalBrick; i Date: Wed, 7 Jun 2017 16:49:42 +0100 Subject: [PATCH 17/22] {"types":"C","runs":7} --- Pyramid.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pyramid.java b/Pyramid.java index f47104c..1815cab 100755 --- a/Pyramid.java +++ b/Pyramid.java @@ -42,7 +42,7 @@ private void buildPyramid() { while (numRow > 0) { double x = (getWidth())/2 - (BRICK_WIDTH*totalBrick)/2; - for (int i=totalBrick; i Date: Wed, 7 Jun 2017 20:30:29 +0100 Subject: [PATCH 18/22] {"types":"C","runs":7} --- Pyramid.java | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/Pyramid.java b/Pyramid.java index 1815cab..9ef1c7c 100755 --- a/Pyramid.java +++ b/Pyramid.java @@ -29,29 +29,28 @@ public class Pyramid extends GraphicsProgram { public void run() { - buildPyramid(); - + int w = getWidth() / 2; + int x = 0; + int j = BRICKS_IN_BASE; + int y = getHeight(); + + + for (int k = 1; k <= 14; k++) { + + for (int i = 0; i < j; i++) { + + GRect brick = new GRect(w + x + (i * BRICK_WIDTH), y, BRICK_WIDTH, BRICK_HEIGHT); + + add (brick); } - - private void buildPyramid() { - int totalBrick = BRICKS_IN_BASE; - int numRow = BRICKS_IN_BASE; - - double y = getHeight() - BRICK_HEIGHT; + y = getHeight() - (BRICK_HEIGHT * k); + x = k * (BRICK_WIDTH / 2); + j--; + + } - while (numRow > 0) { - double x = (getWidth())/2 - (BRICK_WIDTH*totalBrick)/2; - - for (int i=totalBrick; i<0; i--) { - GRect myBrick = new GRect (x, y, BRICK_WIDTH, BRICK_HEIGHT); - add(myBrick); - x += BRICK_WIDTH; - } - totalBrick--; - numRow--; - y-=BRICK_HEIGHT; } - + } } From a6abeb52d0ef6061164ddb137f176f4c685a5db6 Mon Sep 17 00:00:00 2001 From: S Date: Wed, 7 Jun 2017 20:30:42 +0100 Subject: [PATCH 19/22] {"types":"C","runs":8} --- Pyramid.java | 1 - 1 file changed, 1 deletion(-) diff --git a/Pyramid.java b/Pyramid.java index 9ef1c7c..57ed1ab 100755 --- a/Pyramid.java +++ b/Pyramid.java @@ -53,5 +53,4 @@ public void run() { } -} From d5ac6e29b52e88c919482a7889d360680ce4aba0 Mon Sep 17 00:00:00 2001 From: S Date: Thu, 8 Jun 2017 01:27:06 +0100 Subject: [PATCH 20/22] {"types":"C","runs":9} --- Pyramid.java | 45 +++++++++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/Pyramid.java b/Pyramid.java index 57ed1ab..b171270 100755 --- a/Pyramid.java +++ b/Pyramid.java @@ -29,27 +29,36 @@ public class Pyramid extends GraphicsProgram { public void run() { - int w = getWidth() / 2; - int x = 0; - int j = BRICKS_IN_BASE; - int y = getHeight(); - - - for (int k = 1; k <= 14; k++) { - - for (int i = 0; i < j; i++) { - - GRect brick = new GRect(w + x + (i * BRICK_WIDTH), y, BRICK_WIDTH, BRICK_HEIGHT); - - add (brick); + } - y = getHeight() - (BRICK_HEIGHT * k); - x = k * (BRICK_WIDTH / 2); - j--; - + + public void placeBricks() { + + double xMidPoint = getWidth()/2; + double yMidPoint = getHeight()/2; + + double xCenterPoint = (xMidPoint - (BRICK_WIDTH/2)); + double yCenterPoint = (yMidPoint - (BRICK_HEIGHT * BRICKS_IN_BASE)/2); + + int xIncrementor = 0; + + for (int i=0; i Date: Thu, 8 Jun 2017 01:30:47 +0100 Subject: [PATCH 21/22] {"types":"C","runs":10} --- Pyramid.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pyramid.java b/Pyramid.java index b171270..e284454 100755 --- a/Pyramid.java +++ b/Pyramid.java @@ -38,7 +38,7 @@ public void placeBricks() { double yMidPoint = getHeight()/2; double xCenterPoint = (xMidPoint - (BRICK_WIDTH/2)); - double yCenterPoint = (yMidPoint - (BRICK_HEIGHT * BRICKS_IN_BASE)/2); + double yCenterPoint = (yMidPoint - (BRICKS_IN_BASE *(BRICK_HEIGHT)/2)); int xIncrementor = 0; From 2d6c5b2d9ddc7e051017537dcb4d3027e4167e56 Mon Sep 17 00:00:00 2001 From: S Date: Thu, 8 Jun 2017 01:32:36 +0100 Subject: [PATCH 22/22] {"types":"C","runs":11} --- Pyramid.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Pyramid.java b/Pyramid.java index e284454..1a89d0a 100755 --- a/Pyramid.java +++ b/Pyramid.java @@ -29,6 +29,7 @@ public class Pyramid extends GraphicsProgram { public void run() { + placeBricks(); }