Answered step by step
Verified Expert Solution
Question
1 Approved Answer
* * * IN PYTHON * * * Step 1 : Implement database setup methods in DbManager.py DbManager.py contains class DbManager which allows the food
IN PYTHONStep : Implement database setup methods in DbManager.py
DbManager.py contains class DbManager which allows the food vendor to create and access the database. Implement the following attributes and methods for class DbManager:
Attributes
Connection conn Connection object that, once connected, will be used throughout the program.
Instance methods
Database Setup Methods
connect
Establishes a connection to an inmemory database.
disconnect
Disconnects from the existing database.
createmenutabledatafile
Reads a tsv file and creates a table named menu.
Calls insertmenu to insert individual entries to the table.
insertmenumenu
Reads a menu tuple containing the column values of a menu entry category itemname, description, price, preptime, availability
Inserts an entry into the menu table with column values listed in the parameter.
createusertabledatafile
Reads a tsv file and creates a table named user.
Calls insertuser to insert individual entries into the table.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started