<span>#include <iostream>
using namespace std;
class InventoryTag {
public:
InventoryTag();
int getQuantityRemaining() const;
void addInventory(int numItems);
private:
int quantityRemaining;
};
InventoryTag::InventoryTag() {
quantityRemaining = 0;
}
int InventoryTag::getQuantityRemaining() const {
return quantityRemaining;
}
void InventoryTag::addInventory(int numItems) {
if (numItems > 10) {
quantityRemaining = quantityRemaining + numItems;
}
}
int main() {
InventoryTag redSweater;
int sweaterShipment = 0;
int sweaterInventoryBefore = 0;
sweaterInventoryBefore = redSweater.getQuantityRemaining();
sweaterShipment = 25;
cout << "Beginning tests." << endl;
// FIXME add unit test for addInventory
/* Your solution goes here */
cout << "Tests complete." << endl;
return 0;
}</span>
Answer:
288
Explanation:
As first term in sequence is 3 so multiplying it by common ratio 5 we get 15, then multiplying 15 by 5 we get 45 and so on the sequence is
<span>3,15,45,225</span>
whose sum is 288
Answer:
6
Step-by-step explanation:
9/1 × 2/3
(9 × 2 = 18)
(1 × 3 = 3)
18 ÷ 3 = 6
Answer:
D. The rate of change must be 20 pounds per minute.
Step-by-step explanation:
At time 0, the amount of sand is 200 lb. Time zero is when it starts, so it is also called the initial time. The initial value is 200 lb, so choices A and B are wrong.
Now look at the difference from time 0 minutes to time 1 minute. The amount of sand went from 200 lb to 220 lb. The amount of sand placed in 1 minute is 20 lb, so the rate of change is 20 lb per minute. That makes choice C wrong and choice D correct.
Answer: D. The rate of change must be 20 pounds per minute.