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
oksian1 [2.3K]
4 years ago
12

Assume there is a class AirConditioner that supports the following behaviors: turning the air conditioner on and off. The follow

ing methods provide these behaviors: turnOn and turnOff. Both methods accept no arguments and return no value. Assume there is a reference variable officeAC of type AirConditioner. Create a new object of type AirConditioner and save the reference in officeAC. After that, turn the air conditioner on using the reference to the new object.
Computers and Technology
1 answer:
stealth61 [152]4 years ago
5 0

//making reference object.

// the following line will declare a officeAC object of type AirAconditioner by //calling the class constructor by reference using "new" operator.

AirConditioner officeAC =  new AirConditioner();

// the following line will can the method of class AirConditioner to turonOn //the AC

officeAC.turnOn();

You might be interested in
Describe how you would define the relation Brother-in-Law whose tuples have the form (x, y) with x being the brother-in-law of y
damaskus [11]

Answer:

The expression is :

π[cd) + π(g,h) ],[π(e,f)+π(a,b)])

We will use foreign key and primary key

8 0
3 years ago
2. A well designed high-volume system will minimize _________ inventory and reduce _____________for the product or service. a) w
valina [46]

Answer:

A.

Explanation:

A well designed high-volume system will minimize work-in-process (WIP) inventory and reduce lead time for the product.

Work in process (WIP) are partially finished products. WIP inventory could be minimized by designing a suitable high-volume system.

Lead time or throughput time is the time taken for a product to be manufactured or processed. A well designed high-volume system would reduce throughput time.

7 0
3 years ago
PLS HURRY!!!<br> Look at the image below
trasher [3.6K]

The correct choices are:

having the user guess a number and keep guessing till they get it right

allowing the user to enter their best friends names without saying how many friends they can have

writing a program to average numbers without requiring the user to count the numbers.

4 0
3 years ago
The pound sign (#) is the syntax used by excel to indicate that a cell reference is absolute.
kati45 [8]
False. I think the $ sign is used for that. e.g. $A$4.
5 0
3 years ago
write a function deal3 of type 'a list -&gt; a' list whose output list is the same as the input list, but with the third element
qwelly [4]

Answer:

I am writing a python program for this.  

  def deal3(input_list, index):  

   list = []    

   for x in range(len(input_list)):            

       if x != index:  

           list.append(input_list[x])  

   print('list ->',list)      

input_list = [10, 20, 30, 40, 50]  

index = 2

deal3(input_list, index)

Explanation:

  • The first line of code defines a function deal3 which has two parameters. input_list which is an input list and index is the position of elements in the input list.
  • next statement list=[] declares a new list that will be the output list.
  • next statement for x in range(len(input_list)):   is a loop which the loop variable x will traverse through the input list until the end of the input list is reached.
  • the next statement if x != index:  checks if x variable is equal to the position of the element in the list.
  • Next statement list.append(input_list[x]) appends the elements of input list to list( new list that will be the output list). Now the output list will contain all the elements of the input list except for the element in the specified position (index variable).
  • this statement print('list ->',list) prints the list (new output list).
  • this statement input_list = [10, 20, 30, 40, 50]  insert elements 10 20 30 40 50 in the input list.
  • index=2 specifies the second position (3rd element) in the list that is to be removed.
  • deal3(input_list, index) So the function is called which will remove 3rd element of the input list and prints output array with same elements as that in input array except for the element at the specified position.

8 0
3 years ago
Other questions:
  • Identity management programs often implement a _________system that facilitates the management of user accounts.
    8·1 answer
  • Percy is a lighting technician in a film production. For a shot, the chief lighting technician instructs Percy to get the kind o
    15·1 answer
  • Look at the data set below. {6, 7, 12, 5, 7, 11, 10, 7, 6} In this data set, what is the mode?
    9·2 answers
  • . Which of the following is the correct syntax for a method header with parameters? a. public static void example(x, y) { b. pub
    8·1 answer
  • What helps companies and organizations to target masses of people, provide 24/7 services, and deliver better marketing in a chea
    6·1 answer
  • When a formula includes a cell reference, Excel interprets that cell reference as being located relative to the position of the
    13·1 answer
  • Type in computer code for Sonic the Hedgehog, does it look weird yes or no
    15·1 answer
  • HURRY MY COMPUTER IS ABOUT TO DIE ILL GIVE BRAINLYESTn
    8·1 answer
  • Please could you help me
    6·2 answers
  • Pls answer i will give 20 points
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!