From b077da8ea8c7af772f894631158f8db72f9b714f Mon Sep 17 00:00:00 2001 From: 101zh <67253838+101zh@users.noreply.github.com> Date: Mon, 9 Oct 2023 20:47:44 +0000 Subject: [PATCH] feat(3.2.3): Finished U3_L2_Activity_Three --- .vscode/launch.json | 7 +++++++ src/main/java/Unit3/U3_L2_Activity_Three.java | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/main/java/Unit3/U3_L2_Activity_Three.java diff --git a/.vscode/launch.json b/.vscode/launch.json index 226f19b..ce12109 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,5 +1,12 @@ { "configurations": [ + { + "type": "java", + "name": "U3_L2_Activity_Three", + "request": "launch", + "mainClass": "Unit3.U3_L2_Activity_Three", + "projectName": "my-app" + }, { "type": "java", "name": "U3_L2_Activity_Two", diff --git a/src/main/java/Unit3/U3_L2_Activity_Three.java b/src/main/java/Unit3/U3_L2_Activity_Three.java new file mode 100644 index 0000000..a12d2ae --- /dev/null +++ b/src/main/java/Unit3/U3_L2_Activity_Three.java @@ -0,0 +1,17 @@ +package Unit3; + +import java.util.Scanner; + +public class U3_L2_Activity_Three { + public static void main(String[] args) { + Scanner scanner = new Scanner(System.in); + System.out.println("What is the temperature?"); + double temp = scanner.nextDouble(); + + if (!(temp >= 97.0 && temp <= 99.0)) { + System.out.println("NOT NORMAL"); + } + + scanner.close(); + } +}