diff options
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 |