Skip to content

Commit

Permalink
feat(3.2.3): Finished U3_L2_Activity_Three
Browse files Browse the repository at this point in the history
  • Loading branch information
101zh committed Oct 9, 2023
1 parent 2c62024 commit b077da8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
17 changes: 17 additions & 0 deletions src/main/java/Unit3/U3_L2_Activity_Three.java
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit b077da8

Please sign in to comment.