Question
A real estate office handles 50 apartments units. The rent charges of each apartment is RM600 per month, all the units are occupied. However, for
A real estate office handles 50 apartments units. The rent charges of each apartment is RM600 per month, all the units are occupied. However, for each apartment increase a rent about RM60 and one unit becomes vacant. Moreover, each occupied unit requires an average of RM27 per month for maintenance services charges. Find the number of units should be rented to maximize the profit.
Write C++ program that prompts the user to enter:
i.The total number of units.
ii.The rent to occupy all the units.
iii.The increase in rent that results in a vacant unit.
iv.Amount to maintain a rented unit.
The program will display outputs the number of units to be rented to maximize the profit.
Based on above scenario, answer the following question:
a) complete C++ program to solve the problem(30 marks)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started