Answer:
1/2000
Explanation:
import java.util.Scanner;
public class InputExample {
public static void main(String [] args) {
Scanner scnr = new Scanner(System.in);
System.out.print("Enter birth month and date:");//comment this line if not needed
int birthMonth=scnr.nextInt();
int birthYear=scnr.nextInt();
String output= birthMonth+"/"+birthYear+"\n";
System.out.println(output);
}
}
if using this code the out put should be 1/2000
Answer:
modulator
Explanation:
A modulator is a device that performs modulation.
(Single conversation)
Answer:
b) The elevator prioritizes the requests that are on the way where it’s going, but also based on a first come first served principle.
Explanation:
Elevator routing often looks complex, as the elevator has to decide whether to go to the person who has waited the longest or the one who is closest? There are also issues of how long should the rider spend.
A simple algorithm can be designed where the elevator prioritizes the requests that are on the way where it’s going, but also based on a first come first served principle. Once it exhausts the request in its current direction, it then switches directions if there are requests in that direction. This way the elevator is able to tackle the complex issue based on the simple algorithm.