Pick the shipping fee
else if adds another test after an if.
Your task
Use if, else if and else to set shippingFee from orderTotal.
Integer orderTotal = 75;
Integer shippingFee;
String companyName = 'RidgePoint Capital';
Boolean reviewed = false;Requirements
- The first test should be
if (orderTotal >= 100) { - The next test should be
else if (orderTotal >= 50) { - The last branch should be
else { orderTotalshould be75