<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>
Step-by-step explanation:
Given
Lin walks half a mile at a constant rate i.e. Lin velocity is constant. So, in the graph, it will be a straight line through the origin.
Lin is still for five minutes and after she began sprinting for the slip up to halfway i.e. Lin is accelerating or velocity is increasing for the halfway and later she started walking for the rest of the way.
For a linear function: The graph is a straight line
For a non-linear function: The graph is not a straight line
The given graph is not a straight line and is rather a curve with several turning points i.e several ups and downs. Hence the graph belongs to a Non-Linear Function.
A relation is non-function when it passes through same x value more than once. Since this cannot be observed in the given graph, the graph belongs to a function.
Therefore, the correct answer to this question is "Non-Linear Function"