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
When responding to an emergency in an authorized vehicle while functioning as an EMT for an authorized emergency service, the ac
jolli1 [7]

he correct answer is B) subject to laws that govern all drivers.

When responding to an emergency in an authorized vehicle while functioning as an EMT for authorized emergency service, the actions you take while driving are: subject to laws that govern all drivers.

EMT stands for Emergency Medical Technician. It is an emergency responder that has been trained to provide emergency medical assistance to people involved in accidents. They can transport the injured people if no one else is available or it is trained to assist the paramedics in the site of the accident. When driving its car, the EMT is subject to laws that govern all drivers.

The other options of the question were A) covered by your services insurance carrier, C) not likely to result in an investigation in the event of a collision, and D) allowable, provided you do not exceed 15mph above the posted speed limit.

4 0
4 years ago
Why should citizens become active in their government?
r-ruslan [8.4K]

Answer:

a. Stopping to help a motorist whose car has broken down

b. Starting a neighborhood watch group

c. Tutoring adults who do not know how to read

Explanation:

5 0
3 years ago
The social-cognitive perspective highlights the interaction of personal traits with our environment. true or false
Lubov Fominskaja [6]

Answer:

The answer to the affirmation: "The social-cognitive perspective highlights the interaction of personal traits with our environment" is:

- <u>True.</u>

Explanation:

<em>The social-cognitive perspective</em>, created by the Canadian psychologist Albert Blandura, studies the influence of the environment in the personal traits, <em><u>based principally in the learning by imitation</u></em> when the people modify their attitudes gradually taking into account the being form from others and imitating them for obtaining new behaviors.

6 0
3 years ago
The standards of ethical conduct for practitioners of management accounting and financial management contains a policy regarding
Eduardwww [97]

The standards of ethical conduct for practitioners of management accounting and financial management contains a policy regarding confidentiality that requires that management accountants<u> refrain from disclosing </u><u>confidential information</u><u> acquired in the course of their work except when authorized by management, unless </u><u>legally </u><u>obligated to do so.</u>

What are the ethical standards of management accounting?

The Institute of Management Accountants created four principles for moral behavior in management accountants' professional endeavors. Competence, discretion, honesty, and credibility are the four standards.

What are the 4 IMA standards of ethical practice?

  • The fundamental moral values of IMA are: Honesty, Fairness, Objectivity, and Responsibility.
  • Members are expected to follow these guidelines and to inspire others in their organizations to do the same.

Learn more about IMA standards

brainly.com/question/28178302

#SPJ4

6 0
2 years ago
What is the relationship between religious ideas and culture
Vedmedyk [2.9K]

Answer:

the motivation and manifestation of cultural expression.

Explanation:

6 0
3 years ago
Other questions:
  • A teacher creates a test that will predict how well a student will do as a commercial airline pilot. The test is taken before th
    5·1 answer
  • The need for affiliation corresponds to the _____________ level of needs in abraham maslow's hierarchy of needs.
    7·2 answers
  • Which of the following issues would most likely require the creation of foreign policy to solve?
    10·2 answers
  • Feeling pain, hunger, thirst, sleepiness, and being aware of our thoughts and emotions are all examples of ________ stimuli.
    8·2 answers
  • A person becomes the leader of a democracy by Question 3 options: A. taking power by force. B. being elected by popular vote. C.
    5·2 answers
  • Why are intermediate direction sometime more useful than cardinal direction ?
    14·1 answer
  • During the Constitutional Convention of 1787, George Mason argued-
    12·1 answer
  • PLZ HELP ME THXXX........
    11·1 answer
  • 3. After the election, which amendment made it a little better?
    11·1 answer
  • How drought affect plants
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!