<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>
One question at a time, please. I will focus on #16 and ignore #18.
slope: 3/4 line passes thru (-8,2)
Write out y = mx + b. Subst. 2 for y. Subst. -8 for x Subst. (3/4) for m:
2 = (3/4)(-8) + b. Find b. 2 = -6 + b => b = 8
So your equation is y = (3/4)x + 8. Please, use ( ) around those fractions!
4 2/3. add the twos and keep the 2/3
Answer:
idk
Step-by-step explanation:
1/4 can also be written as .25
1 divided by 4 is .25
114 times .25 = answer
154 times .25 = answer