Question: C++ Create two files called apartment.h and appartmentImp.cpp to your directory, Create a driver program named testApartment.cpp containing the main function. Program Requirements: Class attributes

C++ Create two files called apartment.h and appartmentImp.cpp to your directory, Create a driver program named testApartment.cpp containing the main function.

Program Requirements:

Class attributes should include integers for number of rooms, monthly rent, and square feet, as well as booleans for washer/dryer connections and pets allowed or not

Driver file should create two apartment objects: onCampusApt and offCampusApt Prompt the user to enter all the attributes for both apartments.

Display the attributes for both apartments with neat formatting Display whether the two apartments have identical values for all their attributes (testing for equality)

Set the off-campus apartment to allow pets, have washer and dryer connections, and increase its square feet by 150 Display the attributes for both again with neat formatting

Display the price per square foot for both apartments

Your implementation file should provide the functionality for the class to accomplish all the program requirements.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!