Answer:
Explanation:
The following code is written in Java, the function takes in a list with the previous day's values. The function then uses that list, loops through it and multiplies each individual value by 2 and returns the modified list. The first red square represents the test case for the function, while the second red square in the image represents the output.
public static ArrayList<Integer> doubleIt(ArrayList<Integer> mylist) {
for (int x = 0; x<mylist.size(); x++) {
mylist.set(x, mylist.get(x)*2);
}
return mylist;
}
The answer is <em>B.) Close Range Drones</em>
I just took the test
Answer:
The code will be a java-script code
Explanation:
public abstract class Phone{
private String phoneNumber ;
public Phone (String thePhoneNumber) {
phoneNumber = thePhoneNumber ;
}
public String getPhoneNumber ( ) {
return phoneNumber ;
}
public String toString ( ) {
phoneNumber = "# (" + phoneNumber + ") " ;
return phoneNumber ;
}
public abstract boolean createConnection (Network status) ;
public abstract void closeConnection( ) ;
}