Answer:
if(quantityOnHand == 0) { cout<<"Out of stock"; }
else if(quantityOnHand > 0 && quantityOnHand <10) { cout<<"Reorder "; }
else if(quantityOnHand >= 10){ }
See Explanation for comments
Step-by-step explanation:
//This program segment is written in C++
//Only required segment is written
// Comments are used for explanatory purpose
// Program Segment starts here
/*
The following condition tests if quantityOnHand equals 0
If this condition is true, the program prints "Out of stock" without the quotes
*/
if(quantityOnHand == 0) { cout<<"Out of stock"; }
/*
The following condition tests if quantityOnHand is greater than 0, but less than 10
If this condition is true, the program prints "Reorder " without the quotes
*/
else if(quantityOnHand > 0 && quantityOnHand <10) { cout<<"Reorder "; }
/*
The following condition tests if quantityOnHand is greater than o equal to 10
If this condition is true, nothing is done
*/
else if(quantityOnHand >= 10){ }
// End of program segment
Assumption: The program assumes that variable quantityOnHand has already been declared