Java PROJECT: Create a program to show weather for a week for counties in Chicago. Step1: Create a super class Chicago and atleast three subclasses for any three counties. You need to have constructor for each subclass. You need to use private and protected type variables and few methods that should return needed values. You can have few method which may not return anything. Your subclasses need to store temperature for 7 days in an array. Your parent class need s to store humidity and precipitation information. Assume all counties have the same precipitation and humidity. STEP2: Create a main method which should ask the user about which county they want to see the temperature. Main should create object and call the appropriate methods to get the temperature precipitation and about wind/rain/snow. Your program should display the temperature for each day for that county and show the average temperature for the 7 days. It should show the high and low temperature for that week for that county. It should display precipitation and snow/ rain chance for that week. Use a random generator to decide the snow and rain chance. (use 0 and 1). You can use enum somewhere. Extra Credit: If you use JAVA FX to display pictures and textboxes. Sample Run of the program. Please enter the county name Mchenry Sun 45.3 F Mon 34.2 F Tues 15.4 F Wed 23.8 F Thurs 30.0 F Friday 34.7 F Sat 36.1 F Precipitaion 1% Humidity 75% Snow chance - No Rain chance –Yes Average Temperature for Mchenry County is = 31.4 High = 45.3 Low = 15.4 Do you want to check for another county Yes Please enter the county name Kane
Java PROJECT:
Create a program to show weather for a week for counties in Chicago.
Step1: Create a super class Chicago and atleast three subclasses for any three counties.
You need to have constructor for each subclass. You need to use private and protected type variables and few methods that should return needed values. You can have few method which may not return anything.
Your subclasses need to store temperature for 7 days in an array.
Your parent class need s to store humidity and precipitation information. Assume all counties have the same precipitation and humidity.
STEP2: Create a main method which should ask the user about which county they want to see the temperature. Main should create object and call the appropriate methods to get the temperature precipitation and about wind/rain/snow. Your program should display the temperature for each day for that county and show the average temperature for the 7 days. It should show the high and low temperature for that week for that county.
It should display precipitation and snow/ rain chance for that week. Use a random generator to decide the snow and rain chance. (use 0 and 1). You can use enum somewhere.
Extra Credit: If you use JAVA FX to display pictures and textboxes.
Sample Run of the program.
Please enter the county name Mchenry
Sun 45.3 F
Mon 34.2 F
Tues 15.4 F
Wed 23.8 F
Thurs 30.0 F
Friday 34.7 F
Sat 36.1 F
Precipitaion 1%
Humidity 75%
Snow chance - No
Rain chance –Yes
Average Temperature for Mchenry County is = 31.4
High = 45.3
Low = 15.4
Do you want to check for another county Yes
Please enter the county name Kane

Trending now
This is a popular solution!
Step by step
Solved in 3 steps









