From 92dffa114ea6b14fe667573c3c271a1e7b0006c5 Mon Sep 17 00:00:00 2001 From: Daniel Faulkner Date: Sat, 9 Sep 2023 22:13:23 -0700 Subject: [PATCH] done --- .idea/misc.xml | 1 - src/GettingHotInHere.java | 13 +++++++++++++ src/MrRoboto.java | 4 +++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index cf9abe6..b95853c 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/src/GettingHotInHere.java b/src/GettingHotInHere.java index 7a5b209..71c7580 100644 --- a/src/GettingHotInHere.java +++ b/src/GettingHotInHere.java @@ -10,5 +10,18 @@ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("What is the temperature in °F: "); int number = scanner.nextInt(); + System.out.println(number + "°F"); + float Y = (number - 32) * 5 / 9; + int X = (number - 32) * 5 / 9; + int Z = (number - 32) * 5 / 9 + 2; + System.out.printf(Y + "°C \n"); + System.out.printf(X + "°C \n"); + System.out.printf("If it were 2°C warmer it would be " + Z + "°C \n"); + + + + + + } } diff --git a/src/MrRoboto.java b/src/MrRoboto.java index c576091..9dd1807 100644 --- a/src/MrRoboto.java +++ b/src/MrRoboto.java @@ -14,6 +14,8 @@ 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 message = scanner.nextLine(); + System.out.println(domo + message); + } }