Question 5
Consider a program that calculates a fixed shipping cost for online orders based on package weight (in kilograms) using these rules: • If weight is between 0.5 to 1.4 kg, shipping cost is Rs. 5.00. • If weight is between 1.5 to 4.9 kg, shipping cost is Rs. 10.00. • If weight is between 5.0 to 9.9 kg, shipping cost is Rs. 20.00. • If weight is 10.0 kg or above, shipping cost is Rs. 50.00. Assume weight is measured and recorded rounded to one decimal place. How many equivalence class partitions can be identified for this input domain?
3
4
5
6