diff options
author | msglm <msglm@techchud.xyz> | 2023-01-14 05:31:48 -0600 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2023-01-14 05:31:48 -0600 |
commit | 9d53d8857eaa1c9405894a88ca75bc4657e42f35 (patch) | |
tree | eb1efc1d028b949dd83bb710c68be8eff58f26e7 /Java/TirePressure.java | |
download | school-code-master.tar.gz school-code-master.tar.bz2 school-code-master.zip |
Diffstat (limited to 'Java/TirePressure.java')
-rw-r--r-- | Java/TirePressure.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Java/TirePressure.java b/Java/TirePressure.java new file mode 100644 index 0000000..5e5826b --- /dev/null +++ b/Java/TirePressure.java @@ -0,0 +1,33 @@ +import java.io.BufferedReader; +import java.io.InputStreamReader; + +class TirePressure { + public static void main(String[] args) throws java.io.IOException { + int Tire1,Tire2,Tire3,Tire4; + + + System.out.println("Right Front"); + BufferedReader Tire1I = new BufferedReader(new InputStreamReader(System.in)); + Tire1 = Integer.parseInt(Tire1I.readLine()); + System.out.println("Left Front"); + BufferedReader Tire2I = new BufferedReader(new InputStreamReader(System.in)); + Tire2 = Integer.parseInt(Tire2I.readLine()); + System.out.println("Right Rear"); + BufferedReader Tire3I = new BufferedReader(new InputStreamReader(System.in)); + Tire3 = Integer.parseInt(Tire3I.readLine()); + System.out.println("Left Rear"); + BufferedReader Tire4I = new BufferedReader(new InputStreamReader(System.in)); + Tire4 = Integer.parseInt(Tire4I.readLine()); + + if (Tire1 == Tire2 && Tire3 == Tire4){ + System.out.println("Tire Pressure is OK"); + + } else { + System.out.println("Tire pressure is wrong"); + + } + }} + + + +//By msglm; Licensed under the AGPL v3 |