Advertisement
Nikki12345671

Tire Pressure 2

Jan 30th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Program {
  3.  
  4. public static void main(String[] args) {
  5. // TirePressure2
  6. //Nikki Forehand
  7. //Joseph Sweet
  8.  
  9. Scanner sc = new Scanner (System.in);
  10.  
  11. int FrontL, FrontR, RearL, RearR;
  12.  
  13. System.out.println("Enter Tire Pressures in PSI.");
  14. System.out.println("Front Left:");
  15. FrontL = sc.nextInt();
  16. System.out.println("Front Right");
  17. FrontR = sc.nextInt();
  18. System.out.println("Rear Left:");
  19. RearL = sc.nextInt();
  20. System.out.println("Rear Right");
  21. RearR = sc.nextInt();
  22.  
  23. if(FrontL < 25 || FrontR < 25 || RearL < 25 || RearR < 25 ) {
  24.  
  25. System.out.println("TIRE LOW");
  26.  
  27. }
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement