Need help understanding this concept.

Create a program that allows users to customize a new house. The class should be a class called “House” and have the following private member data items:

Model - this should default in your constructor as “Ranch”, but can also be “Split Level” or “Townhome”
Year Built - this should default in your constructor as 2014
Color - can be either white, black, blue, green, light grey or dark grey
Rooms – Enter the number of bedrooms (2 – 5)
Bath – Enter the number of bathrooms (could 1.5 to 4)
Hardwood Floors – Either true for real hardwood or false for cheep vinyl floors


The program will have the following functions:

House (constructor) - will set the house information based on user input
showConfiguration - will output the configurations based on the user
showPrice - for now, let’s assume every house 2 Bed/ 1.5 bath house starts at 100K with 10K for every extra bedroom, 5K for each extra half bath and 12k for every extra full bath
~House (destructor)

After a user enters all their information, the program should display their inputs as well as the price of the house configured.
What do you not understand?
I Know you need to have a header file with

#ifndef __HouseClass__House_Class__
#define __HouseClass__House_Class__

#include <stdio.h>
#include <iostream>
using namespace std;

class HouseClass
{
private:
string model;
int year;
srting color;
int rooms;
int bath;
bool floor;


public:
};
#endif /* defined(__HouseClass__House_Class__) */
after that lost because of the constructors
Last edited on
Topic archived. No new replies allowed.