Question: Description: In this assignment, you will develop a C++ program to decide which apartment to rent. Develop a program to choose whether you can afford

Description:

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

Develop a program to choose whether you can afford to live on 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 roommates you would need to live downtown.

1 bedroom

2 bedrooms

Utilities included

By the river apartments

1,225

1,750

No

Close to the river

700

1,200

Yes

Far from the river

500

800

Yes

Requirements:

Use variable names that are descriptive and initialized.

Use an if-else statement or switches for number of bedrooms and what the user can afford.

Verify that the user has only entered 1 or 2 bedrooms

If the user cannot afford a downtown apartment, calculate how many roommates 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 in this document.

Your program must be documented with the following:

// Name

// Date

// Program Name

// Description

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!