Answer:
int calculate_cost(int quantity) {
double cost = 0;
if (quantity <= 20)
cost = quantity * 23.45;
else if (quantity >= 21 && quantity <= 100)
cost = quantity * 21.11;
else if (quantity > 100)
cost = quantity * 18.75;
return cost;
}
Explanation:
Create a function called calculate_cost that takes one parameter, quantity
Initialize the cost as 0
Check the quantity using if else structure. Depending on the quantity passed, calculate the cost. For example, if the quantity is 10, the cost will be $234.5
Return the cost
The command is more.
hope this helps.
Answer:
nasaan po yung tanongkkkkk
Linux. You do not need Linux as an operating system for your website.
Answer:
<u>a. The scientists must be careful of how many variables they include in their simulation so they do not cause further harm to the frogs.</u>
Explanation:
It is not statistically accurate to assume that the number of variables included in the simulation would cause further harm to the frogs because we need to <em>remember </em>that a simulation is simply a computerized imitation of a real situation, which is usually not totally alike with a real process.
So in no way from a statistical standpoint, does the scientists' decision on the number of variables causes direct harm to the frogs.