diff --git a/.idea/misc.xml b/.idea/misc.xml index cf9abe6..69ace3f 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/GettingHotInHere.java b/src/GettingHotInHere.java index 7a5b209..c2583c3 100644 --- a/src/GettingHotInHere.java +++ b/src/GettingHotInHere.java @@ -9,6 +9,13 @@ 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(); + int i = 50; + int x = scanner.nextInt(); + double y = (x - 32) * (5.0/9); + System.out.printf("%d%n", x); + System.out.printf("%f%n", y); + System.out.printf("%.0f%n", y); + System.out.printf("If it were 2°C warmer it would be: %.6f%n", 2 + y); + } } diff --git a/src/MrRoboto.java b/src/MrRoboto.java index c576091..95ca067 100644 --- a/src/MrRoboto.java +++ b/src/MrRoboto.java @@ -1,9 +1,11 @@ // Import the Scanner tool used for reading (All external packages/libraries/apis are imported similarly this) import java.util.Scanner; +import java.util.ArrayList; public class MrRoboto { /** * Teaching Mr. Roboto how to listen to us. + * Edited By Naqibullah Haiwadpal * @param args Command line arguments [The source file path, The target file path, ...] **/ public static void main(String[] args) { @@ -15,5 +17,7 @@ public static void main(String[] args) { System.out.print("My name is Mr. Roboto, are you Kilroy? "); // Write your program here + System.out.println("no, I'm stan\n" + "Domo arigato no, I'm stan"); + } }