0 1 1 0 1 0 1 1 + 0 0 1 1 0 1 0 0 ------------------ <---- your answer __________________
temp >= 80: swimming 60 <= temp < 80: tennis 40 <= temp < 60: golf temp < 40: skiingFill in the blanks in the code below as directed in the comments. The if should be a cascading if with conditions that are no more complicated than necessary.
int temp; System.out.println("What's the temperature today?"); temp = scan.nextInt(); // Complete the cascading if (points will be deducted for unnecessary // comparisons if ( __________________________________________ ) System.out.println ("Visit our shops!"); else if ( _______________________________________________ ) System.out.println("How about a dip in the pool?"); _______________________________________________________ System.out.println("Go grab a racquet!"); _______________________________________________________ System.out.println("It's a perfect day for golf."); _______________________________________________________ System.out.println("Let's hit the slopes!");