Created
November 12, 2018 10:40
-
-
Save jeremysinger/fb2dd53ff05aa2f52d709e430a2e08dc to your computer and use it in GitHub Desktop.
Ideal output from FP Receipts exercise
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<start> | |
* Items Purchased | |
+ 1 Apple 0.50 | |
+ 2 Apple 0.50 | |
+ 3 Apple 0.50 | |
+ 4 Apple 0.50 | |
+ 5 Apple 0.50 | |
+ 6 Watermelon 3.00 | |
+ 7 Sumatran Coffee Beans 6.00 | |
+ 8 Lovage 2.59 | |
+ 9 Cheese 3.00 | |
+ 10 Cheese 3.00 | |
+ 11 Cream Cheese w. Black Pepper 2.50 | |
* Offers Applied | |
+ 1 2 1.00 0.50 | |
+ 3 4 1.00 0.50 | |
+ 9 10 6.00 3.00 | |
* Reduced Items | |
11 2.50 1.00 | |
* Totals | |
+ Full Price :: 22.59 | |
+ Savings from Offers :: 4.00 | |
+ Savings from Reductions :: 1.50 | |
+ Total Price :: 17.09 | |
<end> | |
<start> | |
* Items Purchased | |
+ 1 Pork 4.00 | |
+ 2 Chicken 4.00 | |
+ 3 Cheese 3.00 | |
+ 4 Mozzarella Cheese 0.99 | |
+ 5 Apple 0.50 | |
+ 6 Apple 0.50 | |
+ 7 Jaffa Oranges 3.00 | |
+ 8 Cheese 3.00 | |
* Offers Applied | |
+ 5 6 1.00 0.50 | |
+ 3 8 6.00 3.00 | |
* Totals | |
+ Full Price :: 18.99 | |
+ Savings from Offers :: 3.50 | |
+ Total Price :: 15.49 | |
<end> | |
<start> | |
* Items Purchased | |
+ 1 Pork 4.00 | |
+ 2 Apple 0.50 | |
+ 3 Bananas 0.80 | |
+ 4 Cheese 3.00 | |
+ 5 Cheese 3.00 | |
+ 6 Cheese 3.00 | |
* Reduced Items | |
1 4.00 2.00 | |
4 3.00 1.00 | |
5 3.00 1.00 | |
6 3.00 1.00 | |
* Totals | |
+ Full Price :: 14.30 | |
+ Savings from Reductions :: 8.00 | |
+ Total Price :: 6.30 | |
<end> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment