Computer Networking: A Top-Down Approach (7th Edition)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
Bartleby Related Questions Icon

Related questions

Question
100%

I need to create a shopping list array in python that does these things (seven items minimum):

  1. Create three global variables with the proper data types( sub_total, total_price, sales_tax)
  2. Sales tax is 8.9%
  3. Create a shopping (List, Tuple or Dictionary) of your choice (Items in list)
  4. Create a price list (Price for each item in shopping list)
  5. Create and print your parallel array (match each item to its price)
  6. Print the list with its index numbers
  7. Select one or more items from the shopping list using the index number
  8. Print your selected items with price
  9. Print sub total (base price of item(s) before tax)
  10. Print sales tax amount (before adding it into total price)
  11. Calculate and print total price with tax included.
  12. Round to two decimal points

This is what I have so far:

print("Hello! Welcome to Garrick's convenience store!\n" "Our menu is:\n" "Chips(1): 2ドル.00\n" "Candy(2): 1ドル.50\n" "Beef Jerky(3): 5ドル.00\n" "Gum(4): 1ドル.00\n"
"Soda(5): 3ドル.00\n" "Gatorade(6): 3ドル.00\n" "Bottled Water(7): 1ドル.50")

def main():
menu = ['Chips', 'Candy', 'Beef Jerky', 'Gum', 'Soda', 'Gatorade', 'Bottled Water']
index_numbers = ['1', '2', '3', '4', '5', '6', '7']
shopping_list = input('Please enter the index number of the items you want to buy: ')

print('You have selected: ', shopping_list)

I have no idea what to do after this point.

Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Similar questions
    SEE MORE QUESTIONS
    Recommended textbooks for you
    Text book image
    Computer Networking: A Top-Down Approach (7th Edi...
    Computer Engineering
    ISBN:9780133594140
    Author:James Kurose, Keith Ross
    Publisher:PEARSON
    Text book image
    Computer Organization and Design MIPS Edition, Fi...
    Computer Engineering
    ISBN:9780124077263
    Author:David A. Patterson, John L. Hennessy
    Publisher:Elsevier Science
    Text book image
    Network+ Guide to Networks (MindTap Course List)
    Computer Engineering
    ISBN:9781337569330
    Author:Jill West, Tamara Dean, Jean Andrews
    Publisher:Cengage Learning
    Text book image
    Concepts of Database Management
    Computer Engineering
    ISBN:9781337093422
    Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
    Publisher:Cengage Learning
    Text book image
    Prelude to Programming
    Computer Engineering
    ISBN:9780133750423
    Author:VENIT, Stewart
    Publisher:Pearson Education
    Text book image
    Sc Business Data Communications and Networking, T...
    Computer Engineering
    ISBN:9781119368830
    Author:FITZGERALD
    Publisher:WILEY