Answer:
1. PANs uses Star Topology.
2. LAN uses four topology (Bus, Ring, Star and Tree).
3. MAN uses Star Topology.
4. WAN uses Bus topology.
Explanation:
1. PAN is the personnel area network, in which different personnel devices of a person are connect to each other with the help of the central computer with the help of Bluetooth, WiFi or some other medium. The central computer will work like a hub and all the devices are directly connected to the central PC. It is same as the ring topology where all the devices are connected to the central PC. So we can say that, PANs use star topology.
2. LAN is the local area network that has been established with in the premises of the organization. In this type of network, four typologies involve to complete the network connection. First is star topology, that is used to connect all the devices with the switches. Then Bus topology is used to connect all the switches with the single main cable. Ring topology is involved to connect all the switches with each other. Tree topology is used to connect different block if the organization in the form of branch to connect the central router or switch.
3. MAN is the Metropolitan Area Network which is comprise of different LANs. All the LANs are connected to the Router in the form of Star topology.
4. WAN is the wide area network. In WAN different MANs are connected to the network through single cable. This type of network uses Bus topology.
Based on the information given the data should be stored in flash memory.
<h3>
What is flash memory:</h3>
Flash memory is a memory storage space that is used to store data or information on a computer.
Flash memory is vital as it help to retain information or data that are stored on a computer after power is removed which inturn means that store data can be retrieve when needed.
Example of flash memory are:
Inconclusion the data should be stored in flash memory.
Learn more about flash memory here:brainly.com/question/6835146
Answer:
int x;
indata.open("lottowins");
indata >> x;
cout << x << endl;
indata >> x;
cout << x << endl;
indata >> x;
cout << x << endl;
indata.close();
Answer:
public class Calculator {
private int total;
private int value;
public Calculator(int startingValue){
// no need to create a new total variable here, we need to set to the our instance total variable
total = startingValue;
value = 0;
}
public int add(int value){
//same here, no need to create a new total variable. We need to add the value to the instance total variable
total = total + value;
return total;
}
/**
* Adds the instance variable value to the total
*/
public int add(){
// no need to create a new total variable. We need to add the value to the instance total variable
total += value;
return total;
}
public int multiple(int value){
// no need to create a new total variable. We need to multiply the instance total variable by value.
total *= value;
return total;
}
//We need to specify which value refers to which variable. Otherwise, there will be confusion. Since you declare the parameter as value, you need to put this keyword before the instance variable so that it will be distinguishable by the compiler.
public void setValue(int value){
this.value = value;
}
public int getValue(){
return value;
}
}
Explanation:
I fixed the errors. You may see them as comments in the code