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
On the first day of class, Professor Wallace tells her geography students that pop quizzes will be given at unpredictable times
joja [24]

Answer:

b. variable-interval

Explanation:

  • In operant conditions, the variable interval is a schedule to reinforce a response that is regarded after an unpredicted amount of time has passed and thus the professor surprises them with a quiz that will reinforce the learning.
4 0
4 years ago
Put the following events in European History in order of occurrence:
Arlecino [84]

Answer:

B) wwl, wwll, european union, cold war

Explanation:

8 0
3 years ago
Read 2 more answers
A theory by Richard Ryan and Edward Deci suggests that there are three psychological needs that need to be balanced in order for
svet-max [94.6K]

Answer:

The answer is autonomy.

Explanation:

Both Ryan and Deci were interested in autonomy as a motor for wellness: it made sense for them that people enjoyed doing something in which they could get their best experience and achieve their best performance. In other words, autonomy refers to an internal motivation for doing any given activity. This is, doing something because we want to do it.

7 0
3 years ago
Explain how gravity causes the tides on Earth?
marshall27 [118]

Answer:

Explanation:

The moon's gravitational pull generates something called the tidal force. The tidal force causes Earth—and its water—to bulge out on the side closest to the moon and the side farthest from the moon. These bulges of water are high tides.

7 0
3 years ago
What does a boat's capacity plate indicate quizlet?.
noname [10]

A boat's capacity plate gives the maximum weight and/or number of people the boat can carry safely in certain weather conditions.

This plate indicates the most weight potential and/or the maximum number of humans that the boat can deliver properly in excellent weather. You ought to now not exceed both the said maximum weight capacity or the maximum number of humans. maximum weight is the mixed weight of passengers, gear, and cars.

Many boat captains will tell you that, as a popular rule-of-thumb, multiplying your vessel's period by its most width and dividing that variety by way of 15 (or on occasion 18) will give you the total wide variety of passengers that your boat can adequately deliver.

The potential plate in your trailer ought to look just like this situation. Multiply the GAWR by using the number of axles to get the GVWR. if you've only were given one axle, the GAWR and GVWR may be the same.

Learn more about boat's capacity plate here : brainly.com/question/27883467

SPJ4

4 0
2 years ago
Other questions:
  • According to federal regulations, "children" are defined as: persons who are under 18 years of age. persons who have not yet att
    14·1 answer
  • One example of ________ is the fact that a lawsuit filed by California against Nevada over river pollution goes directly before
    14·1 answer
  • How is the role of prophet different in Islam than in other religions?
    6·1 answer
  • Cold and cloudy nights are warmer than cold and clear nights (other factors being equal) because ____. a. of thermal belts b. cl
    10·2 answers
  • All three Colonies believed in the importance of _______________. a. religion c. government b. family d. all of the above Please
    14·1 answer
  • Which of these is represented by the number 6 on the map of the United States and Canada?
    9·1 answer
  • Which diagram most effectively shows how a voter influences policy?
    15·2 answers
  • Guys hurry anyone know the answer???
    7·2 answers
  • What is the link between environmental problems and global consumer demand?
    14·1 answer
  • Do u think churchill quote accurately describes the relationship between hitler and chamerlain
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!