SHARE
TWEET

psi

a guest Jan 28th, 2020 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2. public class Program {
  3. /* Garland Watson , Ricky Crosley
  4.  Garland; driver, Ricky: navigator
  5.  1/28/20
  6.  */
  7.    
  8.    
  9.     public static void main(String[] args) {
  10.         double x;
  11.         Scanner sc = new Scanner(System.in);
  12.         //question
  13.         System.out.println("please enter tire preasure in psi");
  14.         //input
  15.         x = sc.nextDouble();
  16.        
  17.         //if bad
  18.         if (x<=25) {
  19.             System.out.println("tire pressure low");
  20.         }
  21.        
  22.         //if too good
  23.         if (x>70) {
  24.             System.out.println("too much lol");
  25.         }
  26.        
  27.         //if good
  28.         else if (x>25) {
  29.             System.out.println("your tire pressure is all good chief");
  30.         }
  31.     }
  32.  
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top