Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion src/GettingHotInHere.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
*
* @author Trevor Hartman
* @author Cameron Meng
*
* @since Version 1.0
*
*/
import java.util.Scanner;

public class GettingHotInHere {
Expand All @@ -9,6 +17,8 @@ public static void main(String[] args) {
// The instantiation code for a Scanner instance.
Scanner scanner = new Scanner(System.in);
System.out.print("What is the temperature in °F: ");
int number = scanner.nextInt();
double Fahrenheit = scanner.nextInt();
double Celsius = (Fahrenheit - 32.0) * 5.0 / 9.0;
System.out.printf(Fahrenheit+" would be "+Celsius+" degrees in celsius.");
}
}
11 changes: 10 additions & 1 deletion src/MrRoboto.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
*
* @author Trevor Hartman
* @author Cameron Meng
*
* @since Version 1.0
*
*/
// Import the Scanner tool used for reading (All external packages/libraries/apis are imported similarly this)
import java.util.Scanner;

Expand All @@ -14,6 +22,7 @@ public static void main(String[] args) {
String domo = "Domo arigato ";

System.out.print("My name is Mr. Roboto, are you Kilroy? ");
// Write your program here
String rp = scanner.nextLine();
System.out.println(domo+rp);
}
}