Hi,
I changed your program using some of the concepts you were trying to use. Hopefully you can see how it works:
#include <string>
#include <iostream>
#include <sstream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
short T;
cin >> T;
cin.ignore();
string str[100];
for(int i=0; i<T; i++)
{
getline(cin, str[i]);
}
for (int i = 0; i < T; i++)
{
stringstream ss(str[i]);
string tmp;
vector<string> v;
while (ss >> tmp)
{
// Let's capitalize it before storing in the vector
if (!tmp.empty())
{
transform(begin(tmp), end(tmp), std::begin(tmp), ::tolower);
tmp[0] = toupper(tmp[0]);
}
v.push_back(tmp);
}
if (v.size() == 1)
{
cout << v[0] << endl;
}
else if (v.size() == 2)
{
cout << v[0][0] << ". " << v[1] << endl;
}
else
{
cout << v[0][0] << ". " << v[1][0] << ". " << v[2] << endl;
}
}
return 0;
}
Answer:
C. 7200 bps.
Explanation:
In networking, transmission lines or connectors and ports operates at a specific speed based on the port type and the cable or medium of transmission.
Baud rate is a concept in digital information technology that defines the rate of symbol per channel during transmission. The bit or data rate is the number of bits transfered in a link per second.
The relationship between baud rate and bit rate is;
Bit rate = baud rate x number of symbol bit level
To get the bit rate of a 2400 baud signal with symbol level = 8 = 2^3
Bit rate = 2400 x 3. = 7200 bps.
Answer:
C. Mean
Explanation:
Mean = (∑
)/N
Median = central values when data is sorted
Mode = most repeated value
Standard deviation = 
In standard deviation, formula you may see that deviation is being calculated from the mean (central location). But here we take square of the value before adding all of them.
But if we just take
, it would be equal to zero.
<u>EXAMPLE</u>
Take 4, 9, 5 as data
mean = (4+9+5)/3 = 18/3 = 6
sum of deviations from mean = (4-6)+(9-6)+(5-6) = (-2)+(3)+(-1) = 0
Answer:
Stand-Alone Operating Systems •Microsoft Windows Mobile –Designed for smartphones and PDAs –Includes simplified versions of Windows programs –Supports handwriting recognition and voice recording –Supports synchronizing with corresponding programs on desktop computers
Explanation:
Stand-Alone Operating Systems •Microsoft Windows Mobile –Designed for smartphones and PDAs –Includes simplified versions of Windows programs –Supports handwriting recognition and voice recording –Supports synchronizing with corresponding programs on desktop computers