Results 1 to 11 of 11

Thread: Calculations [VB6] [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    13

    Resolved Calculations [VB6] [RESOLVED]

    I am writing a program for a friend - here are the details for how the pricing works - how do i do this in VB as i am not very good with calculations etc in vb

    Minimum Charge or $5, which covers 10 kgs for 5 kms
    Each kg over 10 kgs incurs a charge of $0.50
    Distances over 5kms incur an additional charge of $1.00 per km up to 10 kms
    For deliveries over 10 kms, the extra distance should be rounded up to the nearest 5 kms and charged at $2.00 for each extra 5 km block – e.g. if the total distance is 23.75 kms, the extra charge is $5.00 for kms 5 to 10, plus $2.00 x 3(13.75/5) = $11.00

    IntWeight = package weight
    IntDistance = distance

    Thanks
    Last edited by nzguy2004; Jun 22nd, 2005 at 10:42 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width