Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

OVERVIEW & PURPOSE To review Python Lists. ACTIVITIES Build a program that modifies a shoppinglist.txt file by using a module called shopDBmod which contains the

image text in transcribed
OVERVIEW & PURPOSE To review Python Lists. ACTIVITIES Build a program that modifies a shoppinglist.txt file by using a module called shopDBmod which contains the functions used in the main program. Your main program needs to handle the following operations by using menu choices. a: to add an item to list P to print the shopping list g: to get the price of an item, in The functions that should be defined in shop DBmod.py are described below: o prnDB: Prints the product names and prices on to the screen. Takes the product names list and product prices list as argument and returns nothing. o addDB: Adds the name and the price of a new product to the end of name and price lists. Takes the product names list and product prices list as argument and returns the updated lists. o wrtDB: Writes the updated name and price lists to the database file. Takes the database file name and the two lists as arguments and returns nothing o getPriceDB: Find out the price of the user want to know and print the price

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions