Advertisement
ZhenghaoZhu

Lazy Days Resort

Dec 1st, 2015
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. import java.util.*;
  2. public class LazyDaysResort{
  3.   public static void main(String []args){
  4.     Scanner input = new Scanner(System.in);
  5.     System.out.println("What is the temperature today?");
  6.     int temp = input.nextInt();
  7.     if(temp>=80)
  8.       System.out.println("You should go swimming in our amazing pools.");
  9.     else if(temp>=60)
  10.       System.out.println("You should go visit our Golf Club.");
  11.     else if(temp<40)
  12.       System.out.println("You should go skiing on our mountains.");
  13.     if(temp>95)
  14.       System.out.println("Visit our shops!");
  15.     else if(temp<20)
  16.       System.out.println("Visit our shops!");
  17.    
  18.   }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement