This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Main | |
import kareltherobot.Directions; | |
import kareltherobot.Robot; | |
import kareltherobot.World; | |
import java.awt.*; | |
public class Main implements Directions { | |
public static void main(String args[]) { | |
Runnable task = new WorldRainbowify(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Main implements Directions { | |
public static void main(String args[]) { | |
Scanner s = new Scanner(System.in); | |
System.out.println("Enter your 3 letter code"); | |
String code = s.nextLine(); | |
char A = code.charAt(0); | |
char B = code.charAt(1); | |
char C = code.charAt(2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Main { | |
public static void main(String args[]) { | |
Scanner s = new Scanner(System.in); | |
System.out.println("Enter the amount you want change for."); | |
System.out.print("$"); | |
double change = s.nextDouble(); | |
int onehundred = (int) (change / 100); | |
int lo = (int) (change % 100); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
middleNumber(); | |
} | |
public static void middleNumber() { | |
Scanner s = new Scanner(System.in); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
monthToYears(); | |
} | |
public static void monthToYears() { | |
Scanner s = new Scanner(System.in); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
getGPA(); | |
} | |
public static void getGPA() { | |
Scanner s = new Scanner(System.in); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ibJarrett.instagramnameeffect; | |
import java.io.IOException; | |
public class Main { | |
public static void main(String args[]) { | |
while (true) | |
marqueeText(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kareltherobot.*; | |
import sun.security.krb5.KrbApRep; | |
import java.awt.*; | |
public class KarelRun implements Directions { | |
public static void main(String args[]) { | |
/* | |
Runnable task = new WorldRainbowify(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void ch3HW_11(JarrettBot robot) { | |
for (int i = 0; i < 4; i++) | |
robot.buildCorner(); | |
} | |
public void buildCorner() { | |
for (int i = 0; i < 2; i++) { | |
putBeeper(); | |
move(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void lineSorter() { | |
int lineAmount = 0; | |
turnRight(); | |
while (nextToABeeper()) { | |
lineAmount++; | |
move(); | |
} | |
int lineHeigths[] = new int[lineAmount]; | |
turnAround(); | |
for (int i = 0; i < lineAmount; i++) { |
OlderNewer