Answer:
Following statements are in C++.
if(price>=100 && quantity ==5)
{
discount=.20;
}
if(quantity!=5 && price>=100)
{
discount=.15;
}
if(quantity == 5 && price<100)
{
discount=.10;
}
Step-by-step explanation:
I have used three if conditions to handle three cases provided in the question.I have used assignment operator, AND operator(&&),not equal to operator(!=),greater than or equal to operator(>=) ,less than operator(<) to check the values of quantity and price.