Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

image text in transcribed

Welcome to What it Takes to Live Downtown, Rental Calculator Enter your monthly income 2000 Enter 1 if you want a one bedroom, or 2 for a 2 bedroom 1 You can afford the close to river apartment and utilities are included Press any key to continue

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_2

Step: 3

blur-text-image_3

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

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

=+ (c) Write out (8.56) explicitly for the case s = 2.

Answered: 1 week ago

Question

Define Management by exception

Answered: 1 week ago

Question

Explain the importance of staffing in business organisations

Answered: 1 week ago

Question

What are the types of forms of communication ?

Answered: 1 week ago