write a code in C+, assignment help

User Generated

Lnffra700

Programming

Description

the code for beginner . use " condition statement" , loobs , void function , value return function, pass by value and pass by reference only if necessary.

Unformatted Attachment Preview

2. An apartment complex contains possibly 60 apartments, rented out at possibly $500, when the apartment is at this rent price, it is fully occupied. Whenever there is an increase in the rent, possibly by $50, one renter moves out, reducing the occupied units by 1. The apartment complex spends $25 dollars to maintain each occupied unit. How many apartments should be rented to yield maximum profit for the complex. (Profit is calculated by subtracting the rent made from all occupied units from the cost it takes to maintain them). Your program should input from the main the Initial number of apartments the complex has The rent price that has every apartment occupied Your program should input from the function The increase in rent that results in an unoccupied apartment The amount it takes to maintain each occupied apartment Your program should output in the main the number of occupied apartments, it takes to yield maximum pro along with the value of the profit. app 40
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

I have attached the requested help as a txt and a zipped cpp file. They are the same file, just with different extensions. I just gave you both because some people can't op...


Anonymous
Great! Studypool always delivers quality work.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags