Advertisement
Guest User

psi

a guest
Jan 28th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement