Answer:
Check the explanation
Explanation:
• We are taking a look at the class B network beginning with 172.0.0.0.0,while Converting this value to binary as:10101100.00010100.00000000.00000000. 32 bits in total, out of this the First 16 bits that are used as network ID and the subsequent 16 bits are used as HostID.Out of the 16 bits that are sued for Network ID the 2 bits namely Bits fifteen and sixteen (15 and 16) have been set and can't be changed and hence only 14 bits are used as network ID.
• Now so that we can divide this network into 50 subnets for class B network we will have to borrow a bit as shown below:
• 10101100.00010100.00000000.00000000=172.0.0.0.0,Adding 1 bit by borrowing from host portion and adding it to network ID will give it 10101100.00010100.00000000.00000000(0 shown in bold) or10101100.00010100.10000000.00000000 (1 shown in bold) will give us 2 unique subnets.i.e changing 1 bit will give us 2 power 1=2 subnets,thus changing 2 bits will give us 2 power 2 subnets =4 similarly changing 6 bits will give us 64 unique subnets.
• Which means and going by the above problem statement in case we need 50 subnets and we also need to change 6 bits in the Network ID to give 50 unique subnets.
• Thus the answer is 6
GIS (Geographical Information System) designed to capture, store, manipulate, analyze, manage and represent spatial data.
Answer:
The correct program to this question as follows:
Program:
//header file
#include <stdio.h> //include header file for using basic function
int main() //defining main method
{
int amountToChange=19,numFives,numOnes; //defining variable
numFives = amountToChange/5; //holding Quotient
numOnes = amountToChange%5; //holding Remainder
printf("numFives: %d\n", numFives); //print value
printf("numOnes: %d\n", numOnes); //print value
return 0;
}
Output:
numFives: 3
numOnes: 4
Explanation:
In the above program first, a header file is included then the main method is declared inside the main method three integer variable is defined that are "amountToChange, numFives, and numOnes", in which amountToChange variable a value that is "19" is assigned.
- Then we use the numFives and the numOnes variable that is used to calculate the number of 5 and 1 , that is available in the amountToChange variable.
- To check this condition we use (/ and %) operators the / operator is used to hold Quotient value and the % is used to hold Remainder values and after calculation prints its value.