Question: Please help answer this question in C++ (please make sure to answer part A) (Apartment problem) A real estate office handles, say, 50 apartment units.
Please help answer this question in C++ (please make sure to answer part A)
(Apartment problem) A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit?
Write a program that prompts the user to enter:
a. The total number of units.
b. The rent to occupy all the units.
c. The increase in rent that results in a vacant unit.
d. Amount to maintain a rented unit.
The program then outputs the number of units to be rented to maximize the profit.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
