Question: Write a complete Java program to handle weather forecasts. The program should prompt the user for the number of days they would like forecasted.

Write a complete Java program to handle weather forecasts. The program should prompt the user for the number of days they would like forecasted. It should read weather data from forecast.txt, which you may assume is in the following format: Tuesday 75 windy Wednesday 70 sunny Thursday 68 breezy The program should print the weather forecast only for the number of days requested by the user.
Step by Step Solution
There are 3 Steps involved in it
Answer required answer vimport javaio import javautil public class WeatherForecast public static void mainString args Create a Scanner object for user ... View full answer
Get step-by-step solutions from verified subject matter experts
