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
babymother [125]
3 years ago
10

ANSWER ASAP!!!!!

Computers and Technology
2 answers:
Sergio039 [100]3 years ago
6 0
I think it’s A

Hope that helped :)
KiRa [710]3 years ago
6 0

Answer:

my friend thinks its c

hes too smart to be wrong 100% :DDDD

Explanation:

You might be interested in
Interpret the poem 'the popular field'as a definse of natural conservation​
olga2289 [7]

Answer:

<em><u>Consider the poem “The Poplar Field” as a defense of nature conservation. This poem is a defense of nature conservation. The poet's message is that trees shouldn't be cut down recklessly. ... The poet also says that though we can plant trees, they don't grow as fast as the trees are being cut down in the present time.</u></em>

Explanation:

7 0
3 years ago
Which generation is characterized by conspicuous consumption?
yulyashka [42]

Answer:

The is the type of consumption is typically associated with the wealthy but can also apply to any economic class.

Explanation:

7 0
3 years ago
1. Define class Elevator. For simplicity, we do not consider property like capacity (or weight limit), door (open or close), or
mihalych1998 [28]

Answer:

The source code is given below using Java

Explanation:

/*

* File: Passenger.java

*/

public class Passenger {

int currentFloor,targetFloor;//data members

//argumented constructor

public Passenger(int currentFloor, int targetFloor) {

this.currentFloor = currentFloor;

this.targetFloor = targetFloor;

}

//getter method

public int getCurrentFloor() {

return currentFloor;

}

//getter method

public int getTargetFloor() {

return targetFloor;

}

 

}

/***********************/

/*

File: Elevator.java

*/

public class Elevator {

int currentFloor, baseFloor, topFloor;//data members

public Elevator()//default constructor

{

baseFloor=1;

topFloor=6;

currentFloor=1;

}

//argumented constructor

public Elevator(int currentFloor, int baseFloor, int topFloor)

{ if(topFloor>=2 && baseFloor < topFloor && currentFloor>baseFloor && currentFloor < topFloor)

{

this.baseFloor=baseFloor;

this.topFloor=topFloor;

this.currentFloor=currentFloor;

}

else

{

baseFloor=1;

topFloor=6;

currentFloor=1;

}

}

// up method

public void up(int numFloors )

{

if(numFloors>0 && currentFloor+numFloors <=topFloor)

currentFloor+=numFloors;    

}

// down method

public void down(int numFloors )

{

if(numFloors>0 && currentFloor-numFloors >=baseFloor)

currentFloor-=numFloors;

}

//getter method

public int getCurrentFloor() {

return currentFloor;

}

//getter method

public int getBaseFloor() {

return baseFloor;

}

//getter method

public int getTopFloor() {

return topFloor;

}

 

}

/****************************/

/*

* File: PassengersTakeElevator.java

*/

import java.util.ArrayList;

public class PassengersTakeElevator {

//data members

Elevator elevator;

ArrayList <Passenger> passengers;

//default constructor

public PassengersTakeElevator() {

passengers=new ArrayList<>();

elevator=new Elevator();

Passenger p0=new Passenger(5, 2);

passengers.add(p0);

Passenger p1=new Passenger(3, 2);

passengers.add(p1);

Passenger p2=new Passenger(4, 3);

passengers.add(p2);

}

//argumented constructor

public PassengersTakeElevator(Elevator elevator, ArrayList<Passenger> passengers) {

this.elevator = elevator;

this.passengers = passengers;

}

//schedule method

public void schedule(){

for(int i=0;i<3;i++)

{

Passenger p=passengers.get(0);//gets passenger at head

 

System.out.println("Passenger "+i+" is at Fl "+p.getCurrentFloor()+", will go to Fl "+p.getTargetFloor());

System.out.println("Elevator is at Fl "+elevator.getCurrentFloor());

int numFloors=p.getCurrentFloor()-elevator.getCurrentFloor();

if(numFloors>0)

{

System.out.println("Elevator moves up from Fl "+elevator.getCurrentFloor()+" to Fl "+p.getCurrentFloor());

elevator.up(numFloors);

System.out.println("Elevator carries passenger down from Fl "+p.getCurrentFloor()+" to Fl "+p.getTargetFloor());

numFloors=p.getCurrentFloor()-p.getTargetFloor();

elevator.down(numFloors);

}

else if(numFloors<0)

{

System.out.println("Elevator moves down from Fl "+elevator.getCurrentFloor()+" to Fl "+p.getCurrentFloor());

elevator.down(-numFloors);

System.out.println("Elevator carries passenger up from Fl "+p.getCurrentFloor()+" to Fl "+p.getTargetFloor());

numFloors=p.getTargetFloor()-p.getCurrentFloor();

elevator.up(numFloors);

 

}

else

{ numFloors=p.getTargetFloor()-p.getCurrentFloor();

if(numFloors>0)

{

System.out.println("Elevator carries passenger up from Fl "+p.getCurrentFloor()+" to Fl "+p.getTargetFloor());

elevator.up(numFloors);

}

else

{

System.out.println("Elevator carries passenger down from Fl "+p.getCurrentFloor()+" to Fl "+p.getTargetFloor());

elevator.down(-numFloors);

}

}

passengers.remove(0);//removes passenger at head

}

}

}

/*****************************/

/*

* File: TestPassengersTakeElevator.java

*/

import java.util.ArrayList;

public class TestPassengersTakeElevator {

public static void main(String[] args) {

//object of PassengersTakeElevator

System.out.println("Schedule 1");

PassengersTakeElevator obj1=new PassengersTakeElevator();

obj1.schedule();//calling schedule method of PassengersTakeElevator

ArrayList <Passenger> passengers=new ArrayList<>();

Elevator elevator=new Elevator();

Passenger p0=new Passenger(1, 5);

passengers.add(p0);

Passenger p1=new Passenger(2, 4);

passengers.add(p1);

Passenger p2=new Passenger(4, 1);

passengers.add(p2);

System.out.println();

System.out.println("Schedule 2");

PassengersTakeElevator obj2=new PassengersTakeElevator(elevator,passengers);

obj2.schedule();//calling schedule method of PassengersTakeElevator

 

 

}

 

}

7 0
4 years ago
How many bits must be “flipped” (i.e., changed from 0 to 1 or from 1 to 0) in order to capitalize a lowercase ‘a’ that’s represe
castortr0y [4]
Only one.
00100001 is 'A'
01100001 is 'a'
4 0
3 years ago
Assume each of the variables set1 and set2 references a set. Write code that creates another set containing all the elements of
vampirchik [111]

Answer:

The code to this question as follows:

set3= set1.difference(set2)

Explanation:

In the above python code, we assume that 3 sets are defined that are "set1, set2, and set3". In which two sets set1 and set3 must include some values. and set3 include code that is "set1.difference(set2)".

  • In this code, the set3 includes set1, set2 and use an inbuilt function that is the difference().
  • This function is used to define the difference between set1 and set2 and store values in set3. To know the difference we print set3.
3 0
4 years ago
Other questions:
  • Which of these is an example of an integrated presentation?
    10·1 answer
  • Pls help brainliest
    12·1 answer
  • Hypertext Markup language (HTML) version _____ added support for style sheets to give web designers greater control over page la
    12·1 answer
  • What are the nine tasks (steps) you should perform prior to upgrading a computer to windows 7?
    10·1 answer
  • What is used to connect computers to the internet*Audio Ports
    15·2 answers
  • Analyze the code and identity the value of variable a,b and c after the code execution. int a=40, b=50, c=60; if(! (a&gt;=40)) b
    15·1 answer
  • What are binary code​
    7·2 answers
  • Why is it important to consider the clients temperature before doing the foot spa services?​
    13·1 answer
  • I need answer for this urgent plsdsss
    10·2 answers
  • The border to the right of a column is called the ____.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!