Programming Homework Help

Programming Homework Help. There is one C++ programming question to be solve. The question is listed below

Assume you want to keep data about a “house”, which will have attributes of address, owner, lot_size, and year_built.

Task 1: Create house struct with given attributes.
Task 2: Define a function void initHouse (house &) that fills a house struct with data obtained from user enter.
Task 3: Define a function bool compareHouse(house, house) that compares two houses and returns true if they are same, false if they are different. You need to call this function to compare two houses.
Task 4: In main function create two house struct variables and show the usage of these two functions in your code as exemplified below. Underlined text is entered by user.

Example-1
Enter data for first house...
Address: 123 Main St.
Owner: Ms. Brown
Lot size: 951
Year built: 1951

Enter data for second house...
Address: 123 Main St.
Owner: Ms. Brown
Lot size: 950
Year built: 1950

No, they are different houses.

Example-2
Enter data for first house...
Address: 123 Lee St.
Owner: Mr. A
Lot size: 955
Year built: 1955

Enter data for second house...
Address: 123 Lee St.
Owner: Mr. A
Lot size: 955
Year built: 1955

Yes, they are same.

Programming Homework Help

 
"Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"