Question: In this assignment, you will develop a C++ program to decide which apartment to rent. Develop a program to choose in which downtown apartment location

In this assignment, you will develop a C++ program to decide which apartment to rent.

Develop a program to choose in which downtown apartment location you can afford to live: by the river, close to the river, or far from the river. The general rule on how much you can afford for rent and utilities is 40% of gross income. Lets assume utilities are $50 a month.

If you cannot afford downtown, then calculate how many additional roommates you would need to live downtown.

Downtown Apartment Location

1 bedroom cost/month

2 bedrooms cost/month

Utilities included

By the river

1,225

1,750

No

Close to the river

700

1,200

Yes

Far from the river

500

800

Yes

Requirements:

Use variable and constant names which are descriptive and initialized.

Use if-else statements and/or switches for at least some of the choices.

Verify that the user has only entered 1 or 2 bedrooms

If the user cannot afford a downtown apartment, calculate how many additional roommates (besides yourself) are needed to help pay the rent. The number of roommates must be rounded up to whole people (you cannot have 1.5 roommates).

The output must be labelled and easy to read as shown in the sample outputs included below.

Your program must be documented with the following:

// Name

// Date

// Program Name

Submit:

Your .cpp file

Two screen shots of your output using the data in the following examples.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!