This would be considered a social media platform due to it allowing people to share content.<span />
Answer: undefined
Explanation:
just gonna answer it instead of it being a comment
Answer:
Source port number and destination port numbers for segment travelling from HOST B to HOST A are : Source port number is y , and Destination port number is x.
Explanation:
Because in problem statement it given that the TCP segments traveling from Host A to Host B have source port number x and destination port number y. So it is clear that that Host A has a port named x and Host B has a port named y and when segments travels from Host B to Host A the Host B's port becomes source and Host A's port becomes source.
Answer:
See Explaination
Explanation:
/ Header files section
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
#include <cmath>
using namespace std;
// start main function
int main()
{
// variables declaration
string fileName;
string lastName;
double score;
double total;
double grade;
string description;
// prompt the user to enter the input file name
cout << "Enter the input file name: ";
cin >> fileName;
// open the input file
ifstream infile;
infile.open(fileName);
// exit from the program if the input file does not open
if (!infile)
{
cout << fileName << " file cannot be opened!" << endl;
exit(1);
}
// repeat the loop for all students in the file
infile >> lastName;
while (infile)
{
infile >> score;
infile >> total;
// compute the grade
grade = score / total * 100;
// find the grade's description
if (grade > 90)
description = "Excellent";
else if (grade > 80)
description = "Well Done";
else if (grade > 70)
description = "Good";
else if (grade >= 60)
description = "Need Improvement";
else
description = "Fail";
// display the result of each student
cout << lastName << " " << setprecision(0) << fixed << round(grade) << "% " << setprecision(5) << fixed << (grade * 0.01) << " " << description << endl;;
infile >> lastName;
}
// close the input file
infile.close();
system("pause");
return 0;
} // end of main function