Should we guess what's wrong with it?
Here I go:
- Declare FineRate as double, string won't do. Also change it in My.settings
- You calculate daylate, assign it's value to a label and then assign it the value of the label. Can you please explain why you are re-assigning it the same value?
- In the description you mention if the book is damaged they the customer has to pay trice the amount of FineRate. Does trice mean 3 times or 30% ?
- If the customer is not a member then you add 30%, like you've specified in the description, but if he is a member then you add 10% (?).
- You need to reconsider what you are doing in lines 44 and beyond. Fac isn't used -although it should - and you are calculating total like this:
tot = FineRate * (dayslate + (damaged_category * FineRate))
Either change it to tot = fac + ef or tot = (FineRate * dayslate) + ef or change dmgfee and nm to hold only the multiplier for the FineRate. Both doesn't make sense.
adam_k
Veteran Poster
1,057 posts since Jun 2011
Reputation Points: 274
Solved Threads: 205
Skill Endorsements: 11
Question Answered as of 3 Months Ago by
adam_k