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
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...
Related questions
Question
100%
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
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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images

Knowledge Booster
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.Recommended textbooks for you

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY