Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Microsoft Outlook 2023

Authors: James Holler

1st Edition

B0BP9P1VWJ, 979-8367217322

More Books

Students also viewed these Databases questions

Question

Is Internet access to information a human right or a privilege?

Answered: 1 week ago

Question

Describe the nature, development, and consequences of self-esteem.

Answered: 1 week ago

Question

Identify four applications of HRM to healthcare organizations.

Answered: 1 week ago