Coffee Shop

Coffee Shop

This is my coffee shop program. What this program does is allows any employee of a coffee shop to lace an order for any customer that wants to place an order. all the employee would do is select the desired coffee by the customer and how many pounds they would like to receive. I am proud of this because it certainly did take me a lot of time to try and figure out how to make it function well and look good at the same time. it can also allow you to make a new order rather than restarting the program. one challenge I faced was making the money function properly. I used help from my brother to help me understand what to do and how to make it function properly. I would have added more coffee options and shipping options is I had more time.

<!– HTML generated using hilite.me –><div style=”background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;”><pre style=”margin: 0; line-height: 125%”><span style=”color: #008800; font-weight: bold”>def</span> <span style=”color: #0066BB; font-weight: bold”>main</span>():
instructions()
<span style=”color: #888888″>#</span>
<span style=”color: #888888″># Loop for new orders</span>
<span style=”color: #888888″>#</span>
newOrder <span style=”color: #333333″>=</span> <span style=”background-color: #fff0f0″>'yes'</span>
<span style=”color: #008800; font-weight: bold”>while</span> newOrder <span style=”color: #333333″>==</span> <span style=”background-color: #fff0f0″>'yes'</span>:
choices()
repeat <span style=”color: #333333″>=</span> <span style=”background-color: #fff0f0″>'yes'</span>
totalOrder <span style=”color: #333333″>=</span> <span style=”color: #0000DD; font-weight: bold”>0</span>
totalAmount <span style=”color: #333333″>=</span> <span style=”color: #0000DD; font-weight: bold”>0</span>
<span style=”color: #888888″>#</span>
<span style=”color: #888888″># more than one item in order</span>
<span style=”color: #888888″>#</span>
<span style=”color: #008800; font-weight: bold”>while</span> repeat <span style=”color: #333333″>==</span> <span style=”background-color: #fff0f0″>'yes'</span>:
newItem, amount <span style=”color: #333333″>=</span> get_order()
totalOrder <span style=”color: #333333″>=</span> newItem <span style=”color: #333333″>+</span> totalOrder
totalAmount <span style=”color: #333333″>=</span> amount <span style=”color: #333333″>+</span> totalAmount
repeat <span style=”color: #333333″>=</span> doAnother()
method <span style=”color: #333333″>=</span> method_of_delievery(totalAmount)
state, salesTax <span style=”color: #333333″>=</span> state_tax()
finalOrder <span style=”color: #333333″>=</span> final_calculations(totalOrder, method, salesTax)
print_order(finalOrder, state, method, salesTax)
newOrder <span style=”color: #333333″>=</span> place_another_order()
</pre></div>

I chose to show you this source code because I like having the main to show the whole order of operations. also I was very proud of this main because I thought it was very put together and I liked how it looked.

 

One thought on “Coffee Shop

Leave a Reply

Your email address will not be published. Required fields are marked *