Advertisement
MelindaElezovic

LazyDayResort

Dec 1st, 2015
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. //melinda
  2. //11.30.15
  3. //Lake Lazy Day Resort
  4. import java.util.*;
  5.  
  6. public class LazyDayResort
  7. {
  8.   public static void main(String[] args)
  9.   {
  10.     Scanner input = new Scanner(System.in);
  11.     System.out.println("What is the weather today?");
  12.     int temp = input.nextInt();
  13.     if (temp > 95 || temp < 20)                
  14.       System.out.println("You should visit our shops today");
  15.    else if (temp >= 80)
  16.       System.out.println("The weather is perfect for swimming");
  17.     else if (60 <= temp && temp < 80)
  18.       System.out.println("The weather is perfect for playing tennis");
  19.     else if (40 <= temp && temp < 60)
  20.       System.out.println("The weather is perfect for golfing");
  21.     else if (temp < 40)
  22.       System.out.println("The weather id perfect for skiing");
  23.   }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement