Answer:
void print_popcorn_time(int bag_ounces){
if(bag_ounces < 3){
cout<<"Too small"<<endl;
}else if(bag_ounces > 10){
cout<<"Too large"<<endl;
}else{
cout<<(6 * bag_ounces)<<"seconds"<<endl;
}
}
Explanation:
The function is the block of the statement which performs the special task.
For checking the condition in the program, the if-else statement is used.
It can check the condition one or two but if we want to check the more than two different conditions then the continuous if-else statement is used.
syntax of continuous if else:
if(condition){
statement;
}else if(condition)
statement;
}else{
statement;
}
In the question, there are three conditions;
1. bag_ounces is less than 3
2. bag_ounces greater than 10
3. else part.
we put the condition in the above if-else statement and print the corresponding message.
An Average of 10 times faster.
Hope this helps!
Answer:
a good algorithm must be able to accept a set of defined input. Output: a good algorithm should be able to produce results as output, preferably solutions. Finiteness: the algorithm should have a stop after a certain number of instructions. Generality: the algorithm must apply to a set of defined inputs.Explanation:
With this you just have to think about what do different shoes do and why? For example, track shoes need to be extremely light to make it so the runners don't need to move excess weight to accelerate faster whereas basketball shoes can be heavier because they need high ankle coverage for more ankle support during moves like the crossover. Then the key factors that I would do personally are: difficulty to produce, benefit to athlete, cost to athlete, weight, and support. My advice would be to systematically go through a bunch of sports and talk about each of their shoes...
Answer:
letter c. point to site po sagot diyan