Given the following class definition: class Rectangle{  priv…

Given the following class definition: class Rectangle{  private:    int width;    int height;  public:    void setWidth(const int w);    void setHeight(const int h);    int getWidth() const;    int getHeight() const;}; Write the complete definition of the member function getHeight that includes the function header and code to implement the function.

The following function definition requires two  input parame…

The following function definition requires two  input parameters: str1 and str2. Choose the best and correct parameter definition to fill in the blank in the code below. void do_something(______________________________) {   if (str1.length() > 5 && str2.length() > 10) {      if (str1 == ‘a’) {         str1.replace(1, 2, str2.substr(3, 5));      }      else {         str1 = ‘z’;      }   }}

You want to define a C++ class to represent customers for a…

You want to define a C++ class to represent customers for a company. You decide to define three data members to hold the customer ID number (an alphanumeric value),  customer gender (a single letter, i.e. F for female and M for male), and maximum dollar amount that they have ever ordered. What would be the appropriate data types needed to define each of the three instance variables, respectively?