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.*; | |
| public class Dice | |
| { | |
| public static void main(String []args) | |
| { | |
| int die1, die2; | |
| // Random number generator | |
| Random generator = new Random(); |
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 Change | |
| { | |
| public static void main(String []args){ | |
| int cent, placeholder; //placeholder is to store the remainder number | |
| int quarter, dime, nickel, penny; | |
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 Pizza | |
| { | |
| public static void main (String[] args) | |
| { | |
| double size; | |
| double cost; | |
| Scanner scan = new Scanner(System.in); |
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 Birthday | |
| { | |
| public static void main (String[] args) | |
| { | |
| double number; | |
| double birthday; | |
| Scanner scan = new Scanner(System.in); |
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 Weight | |
| { | |
| static Scanner sc = new Scanner(System.in); | |
| public static void main(String []args) | |
| { | |
| double feet = 0.0, inch = 0.0, height = 0.0, girl = 0.0, man = 0.0; | |
| double gper = 0.0, mper = 0.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
| import java.util.Scanner; | |
| public class Dank | |
| { | |
| static Scanner sc = new Scanner(System.in); | |
| public static void main(String []args) | |
| { | |
| final int ONE_GAL = 350; |
NewerOlder