Highest Price Algorithm
This method charges the customer the highest price on the first X items purchased. This method is very commonly used and is a Weights and Measures approved pricing algorithm.
Example
3 for $1.00, price per item is $.33 with one penny being left over after 3 * .33 is calculated. One extra penny is added to the first item sold.
Item Entered at POS Client |
Extended Amount for Item |
Price of Item Entered at POS Client |
|---|---|---|
Item 1 |
.33 + .01 |
.34 |
Item 2 |
.33 |
.33 -> total now sold = .67 |
Item 3 |
.33 |
.33 -> total now sold = 1.00 |
Example
5 for $.88, price per item is $.17 with three pennies left over after 5 * .17 is calculated. One extra penny is added to the first 3 items sold.
Item Entered at POS Client |
Extended Amount for Item |
Price of Item Entered at POS Client |
|---|---|---|
Item 1 |
.17 + .01 |
.18 |
Item 2 |
.17 + .01 |
.18 -> total now sold = .36 |
Item 3 |
.17 + .01 |
.18 -> total now sold = .54 |
Item 4 |
.17 |
.17 -> total now sold =.71 |
Item 5 |
.17 |
.17 -> total now sold = .88 |
Example
7 for $1.00, price per item is $.14 with two pennies left over after 7 * .14 is calculated. One extra penny is added to the first 2 items sold.
Item Entered at POS Client |
Extended Amount for Item |
Price of Item Entered at POS Client |
|---|---|---|
Item 1 |
.14 + .01 |
.15 |
Item 2 |
.14 + .01 |
.15 -> total now sold = .30 |
Item 3 |
.14 |
.14 -> total now sold = .44 |
Item 4 |
.14 |
.14 -> total now sold = .58 |
Item 5 |
.14 |
.14 -> total now sold = .72 |
Item 6 |
.14 |
.14 -> total now sold = .72 |
Item 7 |
.14 |
.14 -> total now sold = 1.00 |