You're creating a weather app that displays temperature, humidity, and wind speed. Fill in the blanks in the code to complete the WeatherApp class. Make sure to use proper Java naming conventions for the class, method, and variables.
Naming variables
Sunny skies, cloudy code
Report a typo
Fill in the gaps with the relevant elements
WeatherApp {
public main(String[] args) {
temperatureCelsius = 25.5;
int humidityPercentage = 60;
double windSpeedKmph = 15.8;
System.out.printf("Temperature: %.1f°C\n", temperatureCelsius);
System.out.printf("Humidity: %d%%\n", humidityPercentage);
System.out.printf("Wind Speed: %.1f km/h\n", windSpeedKmph);
}
} ___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.