Week 4 Lab Makeup

Week 4 Lab Makeup

Week 4 Lab Makeup
Your code for this week shall meet the following requirements:· Create a class named WeatherMap.· This class shall have 3 members:o A string variable for the name of the US state. For example, Floridao A boolean variable to let you know if there is a storm warning.o A Rectangle (week 3) composite object.· The class shall contain the following methods:o Create a Map default constructor and a constructor that accepts and sets all 3 data memberso Create setters and getters for each data membero Write a method called showWarning. This method accepts a length and a width. This data is passed to the composite Rectangle object and then call calculate area.· Write a main function that demonstrates the use of the composite object.
Powered by