Question: IN C++ MUST INCLUDE HEADER FILE, IMPLEMENTATION FILE, AND DRIVER FILE. IN C++ Create a header and implementation file to define an apartment class. Create
IN C++ MUST INCLUDE HEADER FILE, IMPLEMENTATION FILE, AND DRIVER FILE.
IN C++
Create a header and implementation file to define an apartment class. Create a driver program to test the class, and create a make file to compile the driver program.
Create two files called apartment.h and appartmentImp.cpp along with creating 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.
Format your output so that the user of your program understands the values that were input and what was output for each calculation. Your program should have a user-friendly interface. Make sure your program is properly documented and good programming standards are followed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
