summaryrefslogtreecommitdiffstats
path: root/Java/TirePressure.java
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-14 05:31:48 -0600
committermsglm <msglm@techchud.xyz>2023-01-14 05:31:48 -0600
commit9d53d8857eaa1c9405894a88ca75bc4657e42f35 (patch)
treeeb1efc1d028b949dd83bb710c68be8eff58f26e7 /Java/TirePressure.java
downloadschool-code-master.tar.gz
school-code-master.tar.bz2
school-code-master.zip
Inital CommitHEADmaster
Diffstat (limited to 'Java/TirePressure.java')
-rw-r--r--Java/TirePressure.java33
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