No clue where to start: Real Estate Program
So there’s a challenge in a book I’m reading and I have no clue where to begin with this. Any help would be appreciated. Imagine you are investing in real estate and need to create a program to help track, estimate and/or manage costs related to a real estate property. Create the following private member variables: 1. property name/identifier 2. home sale price 3. HOA (home owners association) monthly cost 4. number of bedrooms 5. number of bathrooms 6. house square feet • Create accessor/mutator (get/set) functions for each member variable. Ensure that you use “const” where necessary. The property name is a string, so for the mutator/set function, the input parameter should be a reference to a string constant. • Create two constructors: one which does not take in any input parameters and assigns the numeric variables to 0 and string variables to empty string. A second (overloaded constructor) which takes in parameters for each variable and assigns the values passed in to the member variables. • Create a toString() method that returns a string which prints out all of the variable values of the this RealEstateProperty class. When calling this toString() function, the price per square feet should also be printed along with the other variable values. • Create a function named calculateMortgage() which calculates the mortgage monthly payment. The mortgage monthly payment (M) of a property is calculated as follows: 𝑀 = 𝑃 𝑟(1 + 𝑟)^n/ (1 + 𝑟)^n- 1 This function should output the monthly payment (M) and should have the following input parameters: down payment and monthly interest rate. Assume you will be paying the loan for 360 months. **Hint: use the Math library for exponent computation