Answer:
In C++:
#include<iostream>
#include<vector>
using namespace std;
int main() {
int len;
cout<<"Length: "; cin>>len;
string inpt;
vector<string> vect;
for(int i =0;i<len;i++){
cin>>inpt;
vect.push_back(inpt); }
char ch;
cout<<"Input char: "; cin>>ch;
for(int i =0;i<len;i++){
size_t found = vect.at(i).find(ch);
if (found != string::npos){
cout<<vect.at(i)<<" ";
i++;
}
}
return 0;
}
Explanation:
This declares the length of vector as integer
int len;
This prompts the user for length
cout<<"Length: "; cin>>len;
This declares input as string
string inpt;
This declares string vector
vector<string> vect;
The following iteration gets input into the vector
for(int i =0;i<len;i++){
cin>>inpt;
vect.push_back(inpt); }
This declares ch as character
char ch;
This prompts the user for character
cout<<"Input char: "; cin>>ch;
The following iterates through the vector
for(int i =0;i<len;i++){
This checks if vector element contains the character
size_t found = vect.at(i).find(ch);
If found:
if (found != string::npos){
Print out the vector element
cout<<vect.at(i)<<" ";
And move to the next vector element
i++;
}
}
Answer: Wifi and WiMax are used to create wireless network connections.
Explanation: Wifi and WiMax are used to create wireless network connections. Wifi is used to create small networks and used to connect printers, computers, gaming consoles. WiMax uses spectrum to deliver connection to network. WiMax is used to provide internet services such as Mobile Data and hotspots.
Answer:
D - 2
Explanation:
You can have two report charts per page. You can only add report charts from the enhanced page layout editor.
The mini console and the original page layout editor are not supported. On detail pages, users can refresh up to 100 report charts every 60 minutes. Your organization can refresh up to 3,000 report charts every 60 minutes
For SMB: \\server\path\to\share
For CIFS: //server/path/to/share
Answer:
a=[23,6,78,36,3,250,127,210,-5]
i = len(a) # calculate length
j = min(a) # calculate minimun
k = sum(a) # calculate sum
l= sum(a)/len(a) # calculate mean
print(i)
print(j)
print(k)
print(l)
z = 0.0
i=0
x=[23,6,78,36,3,250,127,210,-5]
y = int(l)
while x[i] < y:
z= int(x[i]/y)
print(z)
x[i] = x[i] - y
z=z+1
i=i+1
Explanation:
So above we have calculated Count, minimum, sum and mean/average. Also we did a simple division and printed quotient.