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?
The three input values (rent when all units are occupied($600), increase in rent that results in a vacant unit ($40) and amount to maintain a rentred unit ($27)). The output consists of a table showing
Number of units rented Monthly Rent Monthly Profit
with 50 lines, the first line showing 50 units rented, the next line showing 49, and so on. At the end of the table, an output statement tells
Maximum profit of $_______________________ occurs when _______ units are rented.