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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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

 

 

 

 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education