Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //melinda
- //11.30.15
- //Lake Lazy Day Resort
- import java.util.*;
- public class LazyDayResort
- {
- public static void main(String[] args)
- {
- Scanner input = new Scanner(System.in);
- System.out.println("What is the weather today?");
- int temp = input.nextInt();
- if (temp > 95 || temp < 20)
- System.out.println("You should visit our shops today");
- else if (temp >= 80)
- System.out.println("The weather is perfect for swimming");
- else if (60 <= temp && temp < 80)
- System.out.println("The weather is perfect for playing tennis");
- else if (40 <= temp && temp < 60)
- System.out.println("The weather is perfect for golfing");
- else if (temp < 40)
- System.out.println("The weather id perfect for skiing");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement