Answer:
<u>Output</u>
Enter first number:
1
Enter second number:
2
Enter third number:
3
Enter fourth number:
4
Average: 2.5
Explanation:
Below is the java program to calculate the average of four numbers:-
import java.util.Scanner;
public class Average {
public static void main(String[] args){
int a,b,c,d;
double average=0.0;
Scanner s=new Scanner(System.in);
System.out.println("Enter first number: ");
a=s.nextInt();
System.out.println("Enter second number: ");
b=s.nextInt();
System.out.println("Enter third number: ");
c=s.nextInt();
System.out.println("Enter fourth number: ");
d=s.nextInt();
average=(a+b+c+d)/4.0;
System.out.println("Average: "+average);
}
}
Smart phones and wireless devices
Complete Question:
The main disadvantage of using this device is its negative impact on network performance, resulting from the fact that any incoming signal on any of its ports is re-created and sent out on any connected ports.
Group of answer choices
a. Router
b. Switch
c. Bridge
d. Hub
Answer:
d. Hub.
Explanation:
A hub can be defined as a layer one (physical) device used for connecting various network devices such as switches and routers in a local area network (LAN). It comprises of many ports which are used for connecting segments of a local area network (LAN). Hubs are generally considered to be unintelligent because when frames are received at a port, it is then copied to every other connected port on the network.
<em>Hence, the main disadvantage of using a hub is its negative impact on network performance, resulting from the fact that any incoming signal on any of its ports is re-created and sent out on any connected ports.</em>