i am on the way of writing a program as my assignment..
it is about the total value of purchase after discount during a megasale.
i encounter problem when writing it..
the problem go as follw:
10% discount is given to purchase>RM1000
5% discount is given to purchase>500 and <1000
2% discount is given to purchase>100 and<500
no discount for purchase<= 100
as when i debug and run it,
it either appear all four sentences of " the total value of purchase is RMXXX"
or the value is wrong...
i am curious about the appearance all those four sentences simultaneously..
and how come the value will wrong as i entered the correct formula: "total= a*(100-b)/100"
please generously help me.. thank you..