I need to create a shopping list array in python that does these things (seven items minimum): Create three global variables with the proper data types( sub_total, total_price, sales_tax) Sales tax is 8.9% Create a shopping (List, Tuple or Dictionary) of your choice (Items in list) Create a price list (Price for each item in shopping list) Create and print your parallel array (match each item to its price) Print the list with its index numbers Select one or more items from the shopping list using the index number Print your selected items with price Print sub total (base price of item(s) before tax) Print sales tax amount (before adding it into total price) Calculate and print total price with tax included. Round to two decimal points

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Array
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
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY