Why can't I find the error?? Plz help me to find the error.
You need to make a shipping cost calculator based on the order amount. The store uses the following cost structure: For orders in the US: - $75+ orders have free shipping - orders less than $75 have a shipping fee of 10% of the total order amount. For international orders, there is a 15% shipping fee, with a maximum of $50. This means that the maximum shipping fee for an international order is $50. You need to complete the given shippingCost() function, which takes the order amount and a Boolean indicating whether the order is international or not, and returns the shipping cost for that order. The return amount should be a Double. The function : đđ if(international == true){ var cost:Double = amount*(15/100) if(cost > 50){ return 50.0 } return cost }else{ var cost:Double = amount*(10/100) if(cost > 75){ return 0.0 } return cost } } Why it showing only 0.0 and how can i solve this??