# solution

Need help with Python.

For this assignment you will need to write a program to process a tableâ€™s order at a restaurant. You will need to define a variable, table_order, that has a list of the menu items the table ordered (one will be provided for testing purposes). A second list will contain the prices of these menu items. Your program will need to process these lists and compute a receipt. The receipt will be output to the user. The receipt should contain the following:

2. Menu item and price, one per line

3. A total

4. The amount of tax on the order

5. A grand total including tax

6. A goodbye message

Example Output

Tonyâ€™s Italian Diner Receipt

Pasta Bolognese – \$10.99

Pasta Carbonara – \$11.99

Diet Coke – \$1.99

Sprite – \$1.99

Total: \$29.95

Tax 6.25%: \$1.87

Grand Total: \$31.82

Thank you for dining with us! We hope to see you again!

Specifics

â€¢ When you calculate the tax and grand total, round down

. â€¢ Empty lists do not need to be handled or processed. Assume the program will never be run with empty lists

â€¢ Assume both lists are the same length

â€¢ The lists used to generate the sample output are: table_order = [â€œPasta Bologneseâ€, â€œPasta Carbonaraâ€, â€œSaladâ€, â€œDiet Cokeâ€, â€œSpriteâ€] menu_prices = [â€œ10.99â€, â€œ11.99â€, â€œ2.99â€, â€œ1.99â€, â€œ1.99â€]

â€¢ The restaurant heading can be anything you want (must be different than this example), but must be present

â€¢ The goodbye message can be anything you want but must be present.

â€¢ I will test your program with the provided order and prices lists, but will use others to verify its functionality

. â€¢ You must use for loops. Your program must expect two lists, named order and prices, to be defined at the start of the program, and process them.

Hints â€¢ The order and prices list match up â€“ that is, the price in prices[0] goes with order[0]. The same is true for all elements in both arrays. â€¢ You only need one for loop â€¢ When you define your own lists, make sure the lengths are the same!