For the code fragment given below; which answer correctly represents minimum tests required for statement and branch coverage respectively?

Code:

Discount rate = 1;
Fare = 1000;
If((person == "senior citizen") and ("travel month = January"))
    Bonuspoints = 100 + Bonuspoints
If(class=="first")
    discountRate = 5
Fare = fare * discountRate

Comments