Answer:
a) Consider sequence numbers,First segment=90
Second segment=110
Data in the first segment = 110-90 =20
b) Consider the first segment is lost but the second segment arrives at B. In the acknowledgment that Host B sends to Host A, then the acknowledgment number will be first segment of sequence number, that is 90.
Explanation:
Answer:
#include <iostream>
#include <cstdlib>
using namespace std;
char grade(double marks){
if(marks>=90)
{
return 'A';
}
else if (marks >=80 && marks<90)
{
return 'B';
}
else if (marks >=70 && marks<80)
{
return 'C';
}
else if (marks >=60 && marks<70)
{
return 'D';
}
else if ( marks<60)
{
return 'F';
}
}
int main()
{
double marks;
cout <<"Ener marks";
cin >>marks;
char grd=grade(marks);
cout<<"Grae is "<<grd;
return 0;
}
Explanation:
Take input from user for grades in double type variable. Write function grade that takes a parameter of type double as input. Inside grade function write if statements defining ranges for the grades. Which if statement s true for given marks it returns grade value.
In main declare a variable grd and store function returned value in it.
Answer
Use the drop-down menus to complete each sentence about the layers of the atmosphere.
If the Mesosphere did not exist, Earth might be destroyed by chunks of rock from space.
The Stratosphere is located 12 to 50 kilometers from Earth’s surface.
Both the Mesosphere and Troposphere get colder as altitude increases.
The ozone in the Stratosphere protects people from ultraviolet (UV) radiation.
The Themosphere has the highest temperature of any layer in Earth’s atmosphere.
u welcome