Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please awnser, will rate! Consider the following declarations: class houseType {

ID: 3767211 • Letter: P

Question

Please awnser, will rate! Consider the following declarations: class houseType { public: void set(string, int, int, int, int, int, double, double); void print() const; void setStyle(string); string getSyle() const; void setNumOfBedrooms(int); int getNumOfBedrooms() const; void setNumOfBedrooms(int); int getNumOfBathrooms() const; void setNumOfCarsGarage(int); int getNumOfCarsGarage() const; void setYearBuilt(int); int getYearBuilt() const; void setFinishedSquareFootage(int); int getFinishedSquareFootage() const; void setPrice(double); double getPrice() const; void setTax(double); double getTax() const; houseType(string = "", int = 0, int = 0, int = 0, int = 0, int = 0, double = 0, double = 0); private: string style; int numOfBedrooms; int numOfBathrooms; int numOfCarsGarages; int yearBuilt; int finishedSquareFootage; double price; double tax; }; houseType newHouse; //variable declaration Assume the definition of class houseType as given in Exercise 11. Answer the following questions? a. Write the definition of the member function set so that private members are set according to the parameters. b. Write the defnition of the member function print that prints the values of the data members. c. Write the definition of the constructor of the class houseType so that the private member variables are initialized according to the parameters. d. Write a C++ statement that print the vlue of the object newHouse. e. Write a C++ statement that declares an object house of type newHouse, and initializes the member variables of house to "Ranch", 3,2,2, 2005, 1300, 185000, and 3600.0, respectvely. f. Which function members are accessors and which are mutators? please answer, language is in C++, thankyou!

Explanation / Answer

Please awnser, will rate! Consider the following declarations: class houseType { public: void set(string, int, int, int, int, int, double, double); void print() const; void setStyle(string); string getSyle() const; void setNumOfBedrooms(int); int getNumOfBedrooms() const; void setNumOfBedrooms(int); int getNumOfBathrooms() const; void setNumOfCarsGarage(int); int getNumOfCarsGarage() const; void setYearBuilt(int); int getYearBuilt() const; void setFinishedSquareFootage(int); int getFinishedSquareFootage() const; void setPrice(double); double getPrice() const; void setTax(double); double getTax() const; houseType(string = "", int = 0, int = 0, int = 0, int = 0, int = 0, double = 0, double = 0); private: string style; int numOfBedrooms; int numOfBathrooms; int numOfCarsGarages; int yearBuilt; int finishedSquareFootage; double price; double tax; }; houseType newHouse; //variable declaration Assume the definition of class houseType as given in Exercise 11. Answer the following questions? a. Write the definition of the member function set so that private members are set according to the parameters. b. Write the defnition of the member function print that prints the values of the data members. c. Write the definition of the constructor of the class houseType so that the private member variables are initialized according to the parameters. d. Write a C++ statement that print the vlue of the object newHouse. e. Write a C++ statement that declares an object house of type newHouse, and initializes the member variables of house to "Ranch", 3,2,2, 2005, 1300, 185000, and 3600.0, respectv