Answer:
I highly recommened you use ggl charts.
Explanation:
It's free. ALL YOU NEED IS AN GGL ACCOUNT. You can also choose many types of graph you want.
Answer:try redoing everything step by step and see if that solves it
Explanation:
They make it easier for computers to connect to one another. WANs provide more options for communication than LAN networks, which are more constrained and limited in scope.
A local area network, or LAN, is a network of computers created within a restricted area, like a home, business, or group of buildings. On the other hand, a wide-area network (WAN) is a computer network that spans a large geographic area. Users can transport data more quickly across LANs than they can via WANs, which have a significantly slower data transmission rate.
LANs are straightforward networks that are used to link computers and other gadgets in a constrained space, such as a home, business, or campus. WLANs are entirely wireless in comparison to traditional LANs, which connect the devices using Ethernet cables. WLANs
To know more about LAN visit:-
#SPJ1
Answer:
885 μs
Explanation:
Given that:
Switch via = 100 Mbps links
The propagation delay for each link = 25μs.
Retransmitting a received packet = 35μs
To determine:
The total time required to transmit 40,000 bits from A to B.
Considering the fact as a single packet:
Transmit Delay / link = size/bandwith
= 4×10⁴ bits / 100 × 10⁶ bits/sec
= 400 μs
The total transmission time = ( 2 × 400 + 2 × 25 + 35) μs
= (800 + 50 + 35) μs
= 885 μs
Answer:
See explaination
Explanation:
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <map>
#include <sstream>
using namespace std;
// structure to hold the word, frequency and list of lines in which word appears
struct wordFrequency
{
string word;
int frequency;
vector<int> lineNumber;
};
// main method
int main()
{
// input file name. You can change the input file name if your file name is different
string inputFileName = "data.txt";
// creating a map class object to hold words uniquely
map<string, wordFrequency> map_word;
// ifstream class object to open and read from file
ifstream fin(inputFileName);
// validating if file is opened or not
if (!fin.is_open())
{
cout << "Error in opening file!";
exit(1);
}
// string to hold line from file
string line;
// int variable to keep track of line number
int lineNumber = 0;
// fetching lines from file
while (getline(fin, line))
{
// increasing the lineNumber count because we fetch another line
++lineNumber;
// breaking a line into words using stringstream class object
string word;
stringstream iss(line);
// iterating over all the words in a line
while (iss >> word)
{
// if the word is not in the map then we create and add a new pair
auto it = map_word.find(word);
if (it == map_word.end())
{
// creating a new struct object to store new word
wordFrequency w;
w.word = word;
w.frequency = 1;
w.lineNumber.push_back(lineNumber);
map_word.insert({word, w});
}
else
{
// if the word is already there then incresing frequency and push line number into list
it->second.frequency += 1;
it->second.lineNumber.push_back(lineNumber);
}
}
}
// closing the input file
fin.close();
// creating a new output file
ofstream fout("WordFrequency.txt");
if (fout.is_open())
{
// iterating over a map
for (auto word : map_word)
{
// writing data to a output file
fout << "Word is : " << word.second.word << endl;
fout << "Frequency is : " << word.second.frequency << endl;
fout << "Appears in line : ";
for (auto i : word.second.lineNumber)
{
fout << i << " ";
}
fout << endl
<< endl;
}
// closing output file
fout.close();
}
else
{
cout << "Error! Not able to create output file!";
}
}
Select one:
a. 1 or 2
b. 2
c. 3
d. 1
e. None
Answer:
b. 2
Explanation:
As we know operator + is supported by the class.Since we know that the + operator binary operator means it needs two operands to work upon it cannot work on one operand.++ operator is unary operator it works on one operand only.
For example:-
a+b
a++.
Hence we conclude that the answer is 2.
Answer:
short_names = ["Gus", "Bob", "Ann"]
print(short_names[0])
print(short_names[1])
print(short_names[2])
Explanation:
There are some typos in your code. In addition to the missing part of the code, I corrected the typos.
First of all, initialize the list called short_names. The list starts with "[" and ends with "]". Between those, there are must be the names (Since each name is a string, they must be written between "" and there must be a semicolon between each name)
Then, you can print each name by writing the name of the list and the index of the names between brackets (Index implies the position of the element and it starts with 0)