Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions