Write a conditional that assigns 10,000 to the variable bonus if the value of the variable goodsSold is greater than 500,000 .

LANGUAGE: C++

CHALLENGE:

Write a conditional that assigns 10,000 to the variable bonus if the value of the variable goodsSold is greater than 500,000.

SOLUTION:

Write a conditional that decreases the variable shelfLife by 4 if the variable outsideTemperature is greater than 90.


if(goodsSold > 500000){
    bonus = 10000;
}