Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have been hired by a real estate agent to write a program that will advise them if they should or should not show an

You have been hired by a real estate agent to write a program that will advise them if they should or should not show an apartment to a client.

The program must ask the user to enter the following information and save the values entered into variables (use the types and names below).

    • int squareFeet;
    • int bedRooms;
    • double bathrooms:
    • int floor:
    • boolean elevator;
    • boolean offStreetParking;
    • double monthlyRent;

Able wants an apartment that:

    • is at least 1500 square feet in size
    • has at least 2 bedrooms
    • has at least 2 bathrooms
    • has off street parking and an elevator
    • rent <= $2000 per month

Baker wants an apartment that:

  • is at least 500 square feet in size
  • has 1 bedroom
  • has 1 bathroom
  • rent <= $1000 per month

Charlie wants an apartment that:

  • is at least 2000 square feet in size
  • has 3 bedrooms
  • has 2 bathrooms
  • rent <= $3000 per month
  • is on floor 4 or above
  • has an elevator

Delta wants an apartment that:

  • is at least 1500 square feet in size
  • has 3 bedrooms
  • has 2 bathrooms
  • rent <= $3000 per month
  • is on floor 4 or above
  • has an elevator
  • has off street parking

Step by Step Solution

3.53 Rating (153 Votes )

There are 3 Steps involved in it

Step: 1

Here is a Python program that asks the user to enter the required information about an apartment and advises if it should be shown to a client based o... 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

Auditing The Art and Science of Assurance Engagements

Authors: Alvin A. Arens, Randal J. Elder, Mark S. Beasley, Joanne C. Jones

13th Canadian edition

133405508, 978-0133405507

More Books

Students also viewed these Programming questions

Question

What is cultural tourism and why is it growing?

Answered: 1 week ago

Question

Subtract the polynomials. (-x+x-5) - (x-x + 5)

Answered: 1 week ago