Hello, This is my first time using cramster, so I hope I\'m doing thiscorrectly.
ID: 3609936 • Letter: H
Question
Hello,This is my first time using cramster, so I hope I'm doing thiscorrectly. Here goes...
I need a lot of help with my java homework. Starting with thisquestion in the book.
-------
CHEX26) A real estate office handles 50 apartments units. Whenthe rent is $600 per month, all units are occupied. However, foreach $40 increase in rent, one unit becomes vacant. Each occupiedunit requires and average of $27 per month for maintenance. Howmany units should be rented to maximize the profit?
Write a program that prompts the user to enter:
a) The number of apartment 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 tomaximize the profit.
----
My professor also said for extra credit, to have the resultsappear in some sort of chart, like a line chart. However, he hasn'ttaught this yet. If anyone knows how to do that, I would be verygrateful.
I appreciate any help given. My computer was wrecked in anaccident, so I've been unable to particpate in class for a monthand a half. So unfortunately, I'm wicked behind and am very lostunfortunately. Thanks for anyone who can lend a hand.
~Kantoro
This is my first time using cramster, so I hope I'm doing thiscorrectly. Here goes...
I need a lot of help with my java homework. Starting with thisquestion in the book.
-------
CHEX26) A real estate office handles 50 apartments units. Whenthe rent is $600 per month, all units are occupied. However, foreach $40 increase in rent, one unit becomes vacant. Each occupiedunit requires and average of $27 per month for maintenance. Howmany units should be rented to maximize the profit?
Write a program that prompts the user to enter:
a) The number of apartment 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 tomaximize the profit.
----
My professor also said for extra credit, to have the resultsappear in some sort of chart, like a line chart. However, he hasn'ttaught this yet. If anyone knows how to do that, I would be verygrateful.
I appreciate any help given. My computer was wrecked in anaccident, so I've been unable to particpate in class for a monthand a half. So unfortunately, I'm wicked behind and am very lostunfortunately. Thanks for anyone who can lend a hand.
~Kantoro