<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:
yeah it is 9/16 you just need to subtract 7 from 16 and you get nine, you dont need to change the denominater.
A circle is made up of 360 degrees. Lets find the decimal form of each part of the circle.
White: 122.4/360 = 0.34
Red: 115.2/360 = 0.32
Silver: 68.4/360 = 0.19
Blue: 54/360 = 0.15
Now, solve for the car color that is not red or blue.
1 - (0.15 + 0.32)
1 - (0.47)
0.53
Therefore, the answer is C.
Best of Luck!
5/6 of a number cannot be greater than the number