Just do it just look up the answers mate
Answer:
Following is the program in C++ Language
#include <iostream> // header file
using namespace std; // namespace std
int main() // main method
{
int n; // variable declaration
cout<<" Please enter the number :";
cin>>n; // Read the number
if(n>0) // check the condition when number is positive
{
cout<<n<<endl<<"The number is Positive"; // Display number
}
else if(n<0) // check the condition when number is Negative
{
cout<<n<<endl<<"The number is Negative";// Display number
}
else // check the condition when number is Zero
{
cout<<n<<endl<<"The number is Zero";// Display number
}
return 0;
}
Output:
Please enter the number:
64
The number is Positive
Explanation:
Following are the description of the program
- Declared a variable "n" of int type.
- Read the value of "n" by user.
- Check the condition of positive number by using if block statement .If n>0 it print the number is positive.
- Check the condition of negative number by using else if block statement If n<0 it print the number is negative.
- Finally if both the above condition is fail it print the message " The number is Zero"
Answer:
Redundant paths can be available without causing logical Layer 2 loops.
Explanation:
- Spanning Tree Protocol is used to allow redundancy in the Layer 2 switched networks without creating cycles/circles also called loops.
- These loops are called physical loops.
- When two parts of the switched network are connected via two or more Layer 2 switches this result in a loop.
- This affects the performance of the network as the result of broadcast packets flooding.
- STP puts one port of the switch to forward mode and the rest of the ports within the same part of the network to the blocking mode to avoid broadcast packet flooding. STP puts all the ports that are allowing redundant paths to block mode and the one port that is left after this is placed in forward mode.
- Spanning Tree Algorithm is used by STP to determine the optimal path of switch to the network.
- Bridge Protocol Data Units are used to share the information about the optimal path determined by the spanning tree algorithm with other switches.
- This information helps STP to eliminate the redundant paths.
- So this is how STP tracks all the links in the switched network and eliminates redundant loops by allowing only one active path to the destination while blocking all other paths.
Answer:
Google Drive
Explanation:
You should be able to download Google Drive, upload the pictures on there and delete them from your gallery. Then you can view them anytime you want.