Week 4 Lab Makeup


CLICK HERE TO DOWNLOAD THIS ANSWER  INSTANTLY $24 Only

 

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:

A string variable for the name of the US state. For example, Florida

A boolean variable to let you know if there is a storm warning.

A Rectangle (week 3) composite object. The class shall contain the following methods:

Create a Map default constructor and a constructor that accepts and sets all 3 data members Create setters and getters for each data member

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.