Problem

Create a structure named Apartment that contains data fields to hold the number of bedroom...

Create a structure named Apartment that contains data fields to hold the number of bedrooms, the number of baths, and the monthly rent for the Apartment. Write a program that creates an Apartment object and prompts the user for number of bedrooms and baths desired. Determine the rent from the following table and set the rent field appropriately. If a requested apartment type is not available, set the rent field to 0.

 

1 bath

2 baths

1 bedroom

$650

Not available

2 bedrooms

$829

$ 925

3 bedrooms

Not available

$1075

Display all the data including an error message if the entered data is invalid, or if no apartments are available with the requested combination. Save the file as Apartment.cpp.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT