diff --git a/src/main/java/Unit3/U3_L3_Activity_Four.java b/src/main/java/Unit3/U3_L3_Activity_Four.java new file mode 100644 index 0000000..ae38d0c --- /dev/null +++ b/src/main/java/Unit3/U3_L3_Activity_Four.java @@ -0,0 +1,19 @@ +package Unit3; + +import java.util.Scanner; + +public class U3_L3_Activity_Four { + 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"); + } else { + System.out.println("Temperature is OK"); + } + + scanner.close(); + } +}