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
Tomtit [17]
3 years ago
9

python There is a reference variable office_a_c of type AirConditioner. Create a new object of type AirConditioner using the off

ice_a_c reference variable. After that, turn the air conditioner on using the reference to the new object.
Computers and Technology
1 answer:
Kay [80]3 years ago
8 0

Answer:

  1. class AirConditioner:
  2.  def __init__(self, a_c=False):
  3.    self.office_a_c = a_c  
  4. ac = AirConditioner()
  5. ac.office_a_c = True

Explanation:

Firstly, create a class and name it as AirConditioner (Line 1).

Next in the class constructor, create the reference variable office_a_c (Line 3). Please note the reference variable shall be preceded with a self keyword. Besides, the reference variable is set to False by default.

Create an AirConditioner object (Line 6) and then use the dot syntax (.) to set the object reference variable office_a_c to True.

You might be interested in
Lindsey also needs to calculate the commissions earned each month. If the company earns $200,000 or more in a month, the commiss
lutik1710 [3]

Answer:

I have created and attached an image with example values for this question.

First we'll learn the IF function syntax:

IF(logical_test, value_if_true, [value_if_false])

Where

logical_test is the decision making comparison

value_if_true is the result to return when TRUE

value_if_false is the result to return when FALSE

We assume that cells B10 to G10 contain the Total Sales for January to June. And cells B17 to G17 contain the Commissions for January to June.

a.

The formula to use in cell B17 is:

<em>=IF(B10>=200000;True;False)</em>

<em />

b.

The formula to use in cell B17 is:

<em>=IF(B10>=200000;B10*0.35;False)</em>

<em />

c.

The formula to use in cell B17 is:

<em>=IF(B10>=200000;B10*0.35;B10*0.27)</em>

<em />

d.

To copy the formula in B17 to C17:G17, you can just copy and paste or select cell B17 and drag from the black square on the bottom right of the cell.

8 0
3 years ago
Read 2 more answers
In 2014, what percentage of the world population has access to the internet?
AfilCa [17]

Answer:

At that time 43.9% of people have access to the global internet.

6 0
3 years ago
What are the uses of the tracrt and ping commands and what information is provided by each.
ikadub [295]

Answer:

The ping command is used to test the ability of a source computer to reach a specified destination computer. This command is used to verify if the sender computer can communicate with another computer or network device in the network.

The tracert command is used to show the details about the path sending a packet from the computer to whatever destination you specify.

6 0
3 years ago
What is a special character in passwords?
UNO [17]
A special character is what is the 2nd key of the numbers on the top of your keyboard. Such as @#$%^&*. These are all special characters. Hope this helped :)
7 0
4 years ago
"what type of device special file is typically used for devices connected to usb ports?"
pochemuha
<span>The character as a type of device special file is typically used for devices connected to USB ports.
</span>These character<span> special </span>files<span> are also called </span>character<span> devices. They provide unbuffered, direct access to the hardware device. </span>
7 0
3 years ago
Other questions:
  • What does ACCU stand for?
    13·2 answers
  • why is this message poor or ineffective ,Due to low profits,there will be no annual year-end bonus this year. We hope to have a
    13·2 answers
  • What should you do to protect your copyright
    7·1 answer
  • How to help it automation with python professional certificate?
    10·1 answer
  • People are not interested in what you do _____. I think, more and more, they're not even really interested necessarily in how yo
    8·1 answer
  • How to convert mkv to avi without losing quality?
    14·1 answer
  • Which is the most efficient way to make the text in a row bold in every worksheet in the file?
    12·2 answers
  • What is the name of the most common connector type used for providing power to various hardware components inside computer case?
    10·1 answer
  • Explain why the scenario below fails to meet the definition of a stakeholder.
    5·1 answer
  • Which of these would be the best way to inform an employee that they are losing their job?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!