Answer:
#include<iostream>
using namespace std;
void OutputMinutesAsHours(double origMinutes) { //Same as question
double hours=origMinutes/60; //solution is here
cout<<hours;
}
//Below is same as mentioned in question
int main() {
OutputMinutesAsHours(210.0);
cout << endl;
return 0;
}
OUTPUT :
3.5
Explanation:
In the above code, only two lines are added. To convert minutes into hours we have to divide them 60, so we take minutes as input and define a new variable of double type which stores minutes converted to hours and then that variable is printed to console. For 210, it gives 3.5, similarly for 3600 it gives 60 and so on.
Answer:
spanning-tree portfast bpduguard
Explanation:
spanning- tree protocol (STP) is a layer 2 protocol in the OSI model. It is automatically configured in a switch to prevent continual looping of BPDUs, to avoid traffic congestion. The fastport bpduguard is only applicable in non-trunking access in a switch. It is more secure to configure the fastport mode in switch port connected directly to a node, because there are still bpdus transfer in a switch to switch connection.
BPDUs Guard ensures that inferior bpdus are blocked, allowing STP to shut an access port in this regard.
Answer:
void printC()
{
int i, j;
for (i = 0; i < 4; i++) //i indicate row number. Here we have 5 rows
{
printf("C"); //print C for every row
for (j = 0; j < 6; j++) //j indicate column number. Here we have 7 Rows
{
if (i == 0 || i == 4) //For first and last row
printf("C"); //print 'CCCCCCC'
else if (i = 1|| i= 3) //for Second forth row
printf("C + +"); //print 'C + +'
else if (i = 2) For second row
printf("C +++++"); //print 'C +++++'
else
continue; //to jump to next iteration
}
printf("\n"); // print in next line
}
}
Answer:
The 3rd one
Explanation:
Intellectual property refers to creations of the mind: inventions; literary and artistic works; and symbols, names and images used in commerce. Intellectual property is divided into two categories: Industrial Property includes patents for inventions, trademarks, industrial designs and geographical indications.
<span>The encapsulation unit on the presentation layer of the OSI model is the Data link layer (2).</span>