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
Answer:
To make the group of four we can write 100011 as 00100011
Now, the two groups are:- 0010 and 0011
And 0010 in binary corresponds to 3 in Hexadecimal
And 0011 in binary corresponds to 4 in Hexadecimal.
So, 100011 of binary corresponds to 34 of hex.
Answer:
Because the tectonic plates are moving so slowly in such small incraments that it would take a while before there was any noticable change.
Explanation: