For python! You walk into a fast food restaurant and order fries, a burger, and a drink....

80.2K

Verified Solution

Question

Programming

For python!

You walk into a fast food restaurant and order fries, a burger,and a drink. Create a simple text based user interactive programkeeps track of the menu items you order. Use a dictionary to keeptrack of your menu items and price and another dictionary to keeptrack of your order and quantity.

ï‚· Fries are $3.50

ï‚· Burger are $5.00

ï‚· Drinks are $1.00

ï‚· Sales tax rate is 7.25%

menu = { \"burger\":5.00, \"fries\":3.50, \"drink\":1.00 }

order = { \"burger\":0, \"fries\":0, \"drink\":0 }

i. Use menu for the menu items and price. Use order to keep arunning total of the number of items ordered.

ii. Keep a running subtotal.

iii. When all items are ordered, calculate the sales tax andtotal amount.

iv. Print a simple receipt.

v. See the assignment description for a sample video of how thismight function.

Answer & Explanation Solved by verified expert
4.0 Ratings (784 Votes)
Python Code forthe given problem statement is as followsmenu burger500 fries350 drink100 order burger0 fries0 drink0 subtotal00def orderFrom global subtotal while True print What you    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students