Skip to content

Instantly share code, notes, and snippets.

@harveyslash
Created September 8, 2016 19:46
Show Gist options
  • Save harveyslash/c939fbf7854336222a97fdd2ffa679f9 to your computer and use it in GitHub Desktop.
Save harveyslash/c939fbf7854336222a97fdd2ffa679f9 to your computer and use it in GitHub Desktop.
+ Today's discount is 91.00%.$
+ Customer: Zoran$
+ >-----List $>-Sale $$
+ >-----$ 39.95 $ 3.60$
+ >-----$ 27.49 $ 2.47$
+ >-----$ 72.79 $ 6.55$
+ >-----$ 127.89 $ 11.51$
+ >-----$ 89.29 $ 8.04$
+ >-----$ 100.00 $ 9.00$
+ Total: $41.17. Savings: $416.24.$
+ Customer: Bert$
+ >-----List $>-Sale $$
+ >-----$ 10.00 $ 0.90$
+ >-----$ 5.00 $ 0.45$
+ >-----$ 7.00 $ 0.63$
+ Total: $1.98. Savings: $20.02.$
+ Customer: Fred$
+ >-----List $>-Sale $$
+ >-----$ 39.95 $ 3.60$
+ >-----$ 27.49 $ 2.47$
+ >-----$ 72.79 $ 6.55$
+ >-----$ 127.89 $ 11.51$
+ >-----$ 89.29 $ 8.04$
+ >-----$ 10.00 $ 0.90$
+ >-----$ 5.00 $ 0.45$
+ >-----$ 7.00 $ 0.63$
+ >-----$ 100.00 $ 9.00$
+ Total: $43.15. Savings: $436.26.$
+ The store closed after serving 3 customers.$
$
Creating submission archive - please wait....$
Files being saved:$
basicShop.c shop_utils.c shop_utils.h$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment