1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nlexa [21]
3 years ago
5

Create a class named Apartment that holds an apartment number, number of bedrooms, number of baths, and rent amount. Create a co

nstructor that accepts values for each data field. Also create a get method for each field. Write an application that creates at least five Apartment objects
Social Studies
1 answer:
nataly862011 [7]3 years ago
6 0

Create a class named Apartment that holds an apartment number, number of bedrooms, number of baths, and rent amount. Create a constructor that accepts values for each data field. Also create a get method for each field. Application is written in the following way .

Explanation:

Potential Input: 1000, 1, 1

Desired Output:  

Aparment#  Rent   Rooms  Bathrooms

111        1000   1      `1

class Apartments:

    def __init__(self, apartNum, rent, rooms, bath):

       self.apartNum=apartNum

       self.rent=rent

       self.rooms=rooms

       self.bath=bath

    def setRent(self,aRent):

       self.rent1 = aRent

    def getRent(self):

       return self.aRent

    def setRoom(self,rooms):

       self.room = rooms

    def getRoom(self):

       return self.rooms

    def setBath(self,baths):

       self.bath = baths

    def getBath(self):

       return self.baths

apt_1= Apartments(111,1000,1,1)

apt_2= Apartments(112,2000,2,1)

apt_3= Apartments(113,2500,2,2)

apt_4= Apartments(114,3000,3,2)

apt_5= Apartments(115,3500,3,3)

rentInput=input('Enter maximum amount of rent: ')    

roomInput=input('Enter minimum number of bedrooms: ')

bathInput=input('Enter minimum number of baths: ')

You might be interested in
Crystal meth is a smokeable form of methamphetamine and is highly addictive. TRUE or FALSE
Rashid [163]
True because of its addictive trait and smokeable form
4 0
4 years ago
Read 2 more answers
Professional associations of juvenile police dedicated to training, information sharing, and developing relationships with other
Shalnov [3]

Answer:

true

Explanation:

5 0
3 years ago
Alexandra is told that research supports the value of cosmetic surgery for boosting self-esteem. Belinda is told that the esteem
serious [3.7K]

Answer:

C. the hindsight bias

Explanation:

the hindsight bias refers to people tendencies to see an situation that they already seen before as predictable. They will assume that the outcome will be  pretty much the same as what they've experienced before.

From the excerpt above, we can see that Alexandra and Belinda the research that they read as 'the truth' without even conducting further investigation.

This most likely happened because both of them already has a pre-conceived notion regarding cosmetic surgery.

Alexandra always believe that cosmetic surgery can increase self-esteem while Belinda has always believed that cosmetic surgery cannot increase self-esteem even before they read the research. Both of them only treat the research as a small confirmation for the bias that they already held.

3 0
3 years ago
For a piece of legislation to proceed to the senate, what are the steps that it should go through?
Ugo [173]

Answer:

   1. Have an Idea.

   2. Write a Bill.

   3. Debate in Committee

   4. Debate on the Senate Floor

   5. Work with House Colleagues

   6. Negotiate Compromises in Conference

   7. Send it to the President for a signature

   8. Reauthorization

Explanation:

i think

5 0
4 years ago
Read 2 more answers
¿CÓMO ENCONTRAMOS EL AGUA?
marusya05 [52]

Answer: 1. El agua en la naturaleza se encuentra en sus tres estados: líquido fundamentalmente en los océanos, sólido (hielo en los glaciares, icebergs y casquetes polares), así como nieve (en las zonas frías) y vapor (invisible) en el aire.

2.  Entre las fuentes de contaminación más notables, podemos citar las siguientes: Emanaciones industriales, en forma de humo o polvo, las cuales son lanzadas a la atmósfera y contaminan el aire. Aguas residuales de origen industrial, que constituyen la principal fuente de contaminación de las aguas.

3.El agua es el elemento más importante para la vida. Es de una importancia vital para el ser humano, así como para el resto de animales y seres vivos que nos acompañan en el planeta Tierra. Resulta curioso que el 70 por ciento de la Tierra sea agua y que el 70 por ciento de nuestro cuerpo también sea agua.

4. Prohibición de productos químicos y físicos contaminantes.

Usar energías limpias y renovables.

Tratamiento y depuración de las aguas grises.

Perseguir y evitar la sobreexplotación de los acuíferos.

5Concientizar a los ciudadanos sobre un uso responsable y ahorro de este recurso.

Fomentar la agricultura eficiente.

Captar y almacenar agua de lluvia.

Reutilizar aguas.

Desalar agua de mar.

Favorecer el acceso al agua potable.

Explanation:

8 0
4 years ago
Read 2 more answers
Other questions:
  • Advances in medical technology have had no impact on the environment. Please select the best answer from the choices provided T
    6·2 answers
  • Prior to the ______, there was no legal protection for women who endured sexual harassment from landlords and sellers when they
    15·2 answers
  • The Incident Action Plan is prepared by General Staff from which section?
    6·1 answer
  • _____ is the expectations that a community places on the actions of firms inside that community’s borders.
    7·1 answer
  • What were the advantages and disadvantages of the use of mechanical harvesting machines is the usa
    14·1 answer
  • Why is HDI necessary?​
    5·2 answers
  • How does the Constitution ensure the states are protected from federal<br> abuse?
    5·1 answer
  • A _____ is something that represents something else with which it has no inherent or direct relationship g
    12·1 answer
  • Compare and constrast levels of processing theory with transfer appropriate processing. Describe experimental results for both a
    14·1 answer
  • How did this activity help you understand the importance of free speech and informed status in a free society? what would you li
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!