Answer:
_____Router___ allows the cloud controller to locate instances on separate zones to boost redundancy.
Explanation:
A router, as a networking device, forwards data packets between one computer network and other networks. With a router, one can use wired and wireless devices to connect to the Internet. Unlike a modem, which connects the home network to a wider internet, a router can enable the networks to interact with one another without using the Internet.
```
#!/usr/local/bin/python3
import sys
coins = { "quarters" : 25, "dimes" : 10, "nickels" : 5, "pennies" : 1 }
def mkChange( balance, coin ):
qty = balance // coins[ coin ]
if( qty ):
print( str( qty ) + ' ' + coin )
return( balance % coins[ coin ] )
if( __name__ == "__main__" ):
if( len( sys.argv ) == 2 ):
balance = int( sys.argv[ 1 ] )
balance = mkChange( balance, "quarters" )
balance = mkChange( balance, "dimes" )
balance = mkChange( balance, "nickels" )
balance = mkChange( balance, "pennies" )
else:
sys.stderr.write( "\nusage: " + sys.argv[ 0 ] + " <change owed>\n" )
```
Answer:
The technician needs to adjust the quality of service tool.
Explanation:
Quality of Service (QoS) tool is a feature in routers and switches which prioritizes traffic so that more important traffic can pass first which results in an improved performance for critical network traffic.
So whenever a complaint is made to the technician that a particular user is using much of the browsing speed which is slowing down the browsing speed of others, The technician needs to adjust the Quality of Service tool of the router that allows the router to share the bandwith among users.
Answer:
import java.util.Arrays;
import java.util.Scanner;
public class num1 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter length of the array:");
int len = in.nextInt();
double [] temps = new double[len];
double avgTem;
int k =0;
double total = 0;
for( k=0; k<temps.length; k++){
System.out.println("Enter values for the array");
temps[k]=in.nextDouble();
}
System.out.println("The Arrays contains the following values");
System.out.println(Arrays.toString(temps));
// Computing the average of the values
for(k=0; k<temps.length; k++){
total = total+temps[k];
}
avgTem = total/(temps.length);
System.out.println("The average Temperature is: "+avgTem);
}
}
Explanation:
- Using Java programming language
- Import the Scanner class to receive user input
- Prompt User for the length of the Array, receive and store in a variable len;
- Declare a new double array of size len double [] temps = new double[len];
- Using a for loop, continually prompt user to enter values into the array
- Display the values of the array using Java's Arrays.toString method
- Use another for loop to add up all the elements in the arraay and store in the variable called total
- Outside the second for loop calculate the average avgTem = total/(temps.length);
- Display the average temp.
Answer:
22
Explanation:
1. We are going to have at hand 32 Enqueue Operation, with 10 from front and 15 dequeue and 5 empty queue operation
2. You dequeued total number of 15-5 =10 elements since 5 dequeue did not change the state of the queue, so invariably 10 dequeue is done.
3. Next is to enqueued a total of 32 elements.
Enqueue Operation do not change the state(and Size) of the queue, and can be ignored.
4. To arrive at the Total Size of queue, we will have 32-10 = 22 at the end
Answer : 22 because its a 5 dequeue Operations.