This file contains hidden or 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 _0_; | |
| public class pluralize { | |
| public String pluralize(String word) | |
| { | |
| //everything lowercase | |
| String lower = word.toLowerCase(); | |
| // Ends with s, x, z, ch, or sh → add "es" |
This file contains hidden or 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 _0_; | |
| import java.util.Scanner; | |
| public class GradeBook { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| //1) Make an array of 20 random # between 60-100 | |
| //2) Make a function that finds the lowest grade |
This file contains hidden or 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 _0_; | |
| public class driver_robot { | |
| public static void main(String[] args) { | |
| // Create a Robot object | |
| Class[] bots = { | |
| new Class("Silver", 800, 12), | |
| new Class("Gold", 1500, 5), | |
| new Class("Blue", 400, 20) |
This file contains hidden or 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 _0_; | |
| public class driver_robot { | |
| public static void main(String[] args) { | |
| // Create a Robot object | |
| Class r1 = new Class("Red", 500, 0); | |
| r1.displayInfo(); // show starting info | |
| r1.evaluateCost(); // adjust color based on cost |
This file contains hidden or 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 _0_; | |
| public class Class | |
| { | |
| private String color;//color | |
| private int cost;//cost | |
| private int chargeBot;//charge in hours | |
| public Class(String c, int cos, int charB) | |
| { |
This file contains hidden or 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 _0_; | |
| import java.util.Scanner; | |
| public class Word_Scrambler { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| int again = 1; | |
This file contains hidden or 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 _0_; | |
| import java.util.Scanner; | |
| public class ea_new_username { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| // User Input |
This file contains hidden or 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 _0_; | |
| import java.util.Scanner; | |
| public class passwordgen { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| String s = "abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()`~<>,.;’:[]{}/|_+-=?"; |
This file contains hidden or 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 isPrime | |
| { | |
| public static void main(String[] args) | |
| { | |
| Scanner sc = new Scanner(System.in); | |
| int option = 0; |
This file contains hidden or 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 _0_; | |
| import java.util.Scanner; | |
| public class isPrime | |
| { | |
| public static void main(String[] args) | |
| { | |
| Scanner sc = new Scanner(System.in); |