- # Algorithm to find the number of integers greater than 10 in a list
- list = read(list of integers)
- n = len(list)
- count = 0
- For i = 1 to n
- If list[i] > 10:
- count = count + 1
- Endif
- End
- Return count
<h3>
Explanation:</h3>
Then the length of the list is stored in a variable n. A variable count to store the number of integers more significant than 10 is initialized to 0.
- Then, a for-loop is used to iterate over the list. A for-loop is used in this case because every element of the inventory needs to be checked for a value greater than 10.
- In each iteration of the for-loop, the value at the index of the list is checked. If the value is greater than 10, then the counter variable count is incremented by 1.
- The iterations continue till the for-loop ends. At this point, the variable count will be the number of integers greater than 10.
- Note that in case the list does not have any number greater than 10, then the count variable will be 0.
To learn more about it, refer
to brainly.com/question/25311149
#SPJ4
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:
Either scroll on a mouse or use the left arrow key.
I don't know if this is right.
Answer:
1. Open the form in the standard form view.
2. Put the cursor in the field to use for sorting.
3. Open the Home tab
4. In the Sort & Filter group, click ascending or descending
Explanation:
Took the test :)
Answer:
In studies about new medicines, researchers usually give one group of patients the medicine that is designed to treat an illness. They give another group of patients a placebo, which is taken the same way as the medicine but does not actually contain the ingredients of any medicine. Different medicines are tested in different experiments, but the placebos usually contain the same non-medical ingredients. If both groups of patients are healed, then researchers cannot be sure whether the medicine caused improvement, but if the group given the medicine is healed while the group given the placebo remains ill, researchers can conclude that the medicine causes the illness to go away.
In medical experiments, which group receives placebos?
the experimental group
the control group
both the experimental and control groups
neither the experimental nor control group
Explanation: