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
svp [43]
3 years ago
10

Assume there is a class AirConditioner that supports the following behaviors: turning the air conditioner on and off, and settin

g the desired temperature. The following methods provide this behavior: turnOn and turnOff, and setTemp, which accepts an int argument and returns no value. Assume there is a reference variable myAC to an object of this class, which has already been created. Use the reference variable, to invoke a method that tells the object to set the air conditioner to 72 degrees.
Computers and Technology
1 answer:
Illusion [34]3 years ago
6 0

Answer:

public class AirConditioner {

   boolean turnOnOff;

   int temp;

//The Constructor

   public AirConditioner(boolean turnOnOff, int temp) {

       this.turnOnOff = turnOnOff;

       this.temp = temp;

   }

//Method to turnOn AC

   public void turnOn(){

       this.turnOnOff = true;

   }

//Method to turnOff AC

   public void turnOff(){

       this.turnOnOff = false;

   }

////Method to set Temperature

   public void setTemp(int newTemp){

       this.temp = newTemp;

   }

}

Explanation:

A test class where an object of the class is created is given below

class AirconditionerTest{

   public static void main(String[] args) {

//Creating the class reference        

AirConditioner myAc = new AirConditioner(true,72);

//Calling methods in the class      

myAc.turnOn();

 myAc.setTemp(72);

   }

}

You might be interested in
Ashley has many interests. She likes to read, listen to music, and play soccer with her friends. But her favorite thing to do is
attashe74 [19]

ashley has a lot of interests

7 0
3 years ago
A Cisco Catalyst switch has been added to support the use of multiple VLANs as part of an enterprise network. The network techni
Ostrovityanka [42]

Answer:

The technician should delete the startup configuration and the "vlan.dat" file residing in the flash memory of the newly added switch and lastly, he should reboot the switch.

Explanation:

In this scenario, a Cisco Catalyst switch has been added to support the use of multiple virtual local area networks (VLANs) as part of an enterprise network. The network technician finds it necessary to clear all virtual local area network (VLAN) information from the switch in order to incorporate a new network design. To accomplish this task successfully, the technician should delete the startup configuration and the "vlan.dat" file residing in the flash memory of the newly added switch and lastly, he should reboot the switch. The VLAN informations are stored in a file with the name "vlan.dat" residing in the flash memory of the switch.

However, in order to delete the startup configuration he would be required to login as an administrator, so as to have all privileges.

<em>Also, the essence of deleting the startup configuration and the "vlan.dat" is to avoid any conflict in the network. </em>

8 0
4 years ago
Which collaboration website is best suited for social collaboration? www.media.iearn.org/projects www.meetup.com www.quest.nasa.
olga55 [171]
The first option is the correct answer
6 0
3 years ago
A marketing firm has been hired to help a client understand how their online brand is perceived. The firm has set up a system to
KiRa [710]

Answer:

Automated Reasoning

Explanation:

Automated reasoning is a type of Natural language understanding(NLP) in computer science that makes logical inferences based on information or data previously gathered. Automated reasoning allows computers make intelligent decisions and reason logically based on data gathered. For example, a system is based to scan online reviews and conclude on the ones that are negative reactions based on previous data.

3 0
3 years ago
Define Based Assessment ​
Oduvanchick [21]

Explanation:

In an educational setting, standards-based assessment is assessment that relies on the evaluation of student understanding with respect to agreed-upon standards, also known as "outcomes". The standards set the criteria for the successful demonstration of the understanding of a concept or skill -WIKIPEDIA

8 0
3 years ago
Other questions:
  • The condition, ____, entered in the criteria row of a long text field in a query window would retrieve all records where the lon
    8·1 answer
  • Troubleshooting a printer that does not work includes a. connecting the printer to your computer b. checking to see if there is
    13·1 answer
  • A risk handling technique in which the organization chooses to simply do nothing, as the cost of the risk being actualized is lo
    15·1 answer
  • A hierarchical topology is also called a _____ topology.
    9·1 answer
  • Which of the following is the correct ordering of operating systems, oldest to newest?
    5·2 answers
  • What is the importance of eliminating marks that classify a master key
    7·1 answer
  • What 2 important components are found on a motherboard? (2 points each)
    13·1 answer
  • In his digital portfolio, Ben wants to locate each work he created. Where can he list details about the work in his digital port
    7·2 answers
  • How do you answer a question that's already been answered?
    5·1 answer
  • Do small companies need computers? why?<br>​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!