Question: Java please Write a program that will read from the user the sky condition (string) and the current temperature (int). Your program will inform the
Java please
Write a program that will read from the user the sky condition (string) and the current temperature (int). Your program will inform the user if they need a jacket and/or sunglasses. The user will need a jacket if the temperature is lower than 15 (inclusive) and they will need sunglasses if the sky is "sunny". If neither condition is true the user will need nothing.
Step 1:
Use the scanner object to read a String and an int from the user. Each entry will be on a new line
Step 2:
Check if the user needs a jacket and/or sunglasses.
Step 3:
Print the information back to the user according to the examples below
| Input | Output |
| sunny 2 | You'll need a jacket and sunglasses |
| cloudy -10 | You'll need a jacket |
| cloudy 30 | You'll need nothing |
| sunny 42 | You'll need sunglasses |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
