class BooleanExpression { public static boolean isInside(double x, double y) { // Schreiben Sie hier Ihre Methode return true; } public static void main(String[] args) { // Testen Sie hier Ihre Methode } } BooleanExpression.main(new String[0]); class BooleanTest { public static void main(String[] args) { // Schreiben Sie hier Ihren Code } } BooleanTest.main(new String[0]); class OperationOrder { public static void main(String[] args) { // Schreiben Sie hier Ihren Code } } OperationOrder.main(new String[0]); %mavenRepo shapemodelling-repo https://shapemodelling.cs.unibas.ch/repo/ %maven ch.unibas.informatik:jturtle:0.7 import static ch.unibas.informatik.jturtle.TurtleCommands.*; import java.awt.Color; class Building { public static void drawRectangle(double xPos, double yPos, double width, double height) { reset(); // set turtle to origin and make it face upwards penUp(); goTo(xPos, yPos); penDown(); forward(height); turnRight(90); forward(width); turnRight(90); forward(height); turnRight(90); forward(width); } public static void drawFourStoreyBuilding(double xPos, double yPos, double width, double height) { double heightOfStorey = height / 4.0; drawRectangle(xPos, yPos, width, heightOfStorey); drawRectangle(xPos, yPos + heightOfStorey, width, heightOfStorey); drawRectangle(xPos, yPos + 2 * heightOfStorey, width, heightOfStorey); drawRectangle(xPos, yPos + 3 * heightOfStorey, width, heightOfStorey); } public static void main(String[] args) { clear(); drawFourStoreyBuilding(0, 0, 30, 50); display(drawing()); } } Building.main(new String[0]); class Building { public static void drawRectangle(double xPos, double yPos, double width, double height) { reset(); // set turtle to origin and make it face upwards penUp(); goTo(xPos, yPos); penDown(); forward(height); turnRight(90); forward(width); turnRight(90); forward(height); turnRight(90); forward(width); } public static void drawFourStoreyBuilding(double xPos, double yPos, double width, double height) { double heightOfStorey = height / 4.0; drawRectangle(xPos, yPos, width, heightOfStorey); drawRectangle(xPos, yPos + heightOfStorey, width, heightOfStorey); drawRectangle(xPos, yPos + 2 * heightOfStorey, width, heightOfStorey); drawRectangle(xPos, yPos + 3 * heightOfStorey, width, heightOfStorey); } public static void main(String[] args) { clear(); drawFourStoreyBuilding(0, 0, 30, 50); display(drawing()); } } Building.main(new String[0]); class Building { public static void drawRectangle(double xPos, double yPos, double width, double height) { reset(); // set turtle to origin and make it face upwards penUp(); goTo(xPos, yPos); penDown(); forward(height); turnRight(90); forward(width); turnRight(90); forward(height); turnRight(90); forward(width); } public static void drawBuilding() { // Fügen Sie hier die benötigten Argumente ein // Schreiben Sie hier Ihren Code } public static void main(String[] args) { clear(); drawBuilding(); // Ergänzen Sie hier den Aufruf mit den benötigten Argumenten display(drawing()); } } Building.main(new String[0]); class Drawing { public static void main(String[] args) { // Schreiben Sie hier Ihren Code } } Drawing.main(new String[0]); public class Sierpinski { public static void drawSierpinski(double length, int depth) { if (depth==0){ for (int i = 0; i < 3; i++) { forward(length); turnLeft(120); } } else { drawSierpinski(length/2.0 , depth-1); forward(length/2); drawSierpinski(length/2.0,depth-1); backward(length/2); turnLeft(60); forward(length/2); turnRight(60); drawSierpinski(length/2.0,depth-1); turnLeft(60); backward(length/2); turnRight(60); } } public static void main(String[] args) { home(); clear(); reset(); penUp(); goTo(-80, -80); turnRight(90); penDown(); drawSierpinski(160, 7); display(drawing()); } } Sierpinski.main(new String[0]);