Question: Task 4 : ( 5 pt ) The company asks you to implement a Python program for the following function: summary.py: Return the summary report

Task 4: (5 pt) The company asks you to implement a Python program for the
following function:
summary.py: Return the summary report of the company. The report
includes:
A total number of musicians and a list of musicians (name and ssn).
A total number of albums and a list of albums recorded at Notown (name
and album id).
A total number of instruments and a list of instruments at Notown (name,
key, and id).
A table consists of the names of musicians and the total number of albums
written by them. 'num'
A
B
'street'
1000
'University'
'street_type'
'n
\table[[,,,,,,,,],['Antonio',100000000,7,'F',2004,'CD',",'flute','C'],['Antonio',100000000,21,'X',2010,'MC',5,'synthesizer','B'],['Antonio',100000000,21,'X',2010,'MC',8,'synthesizer','B-flat'],['Antonio',100000000,21,'X',2010,'MC',9,'flute','C'],['Antonio',100000000,24,'V',2015,'MC',6,'synthesizer','C'],['Abel',100000001,5,'D',1991,'CD',3,'guitar','E'],['Abel',100000001,5,'D',1991,'CD',6,'synthesizer','C'],['Abel',100000001,7,'F',2004,'CD',9,'flute','C'],['Abel',100000001,16,'P',1995,'MC',3,'guitar','E'],['Abel',100000001,16,'P',1995,'MC',5,'synthesizer','B'],['Abel',100000001,16,'P',1995,'MC',8,'synthesizer','B-flat'],['Alex',100000002,9,'I',2004,'CD',6,'synthesizer','C'],['Alex',100000002,9,'I',2004,'CD',12,'guitar','B'],['Alex',100000002,14,'M',1995,'CD',3,'guitar','E'],['Alex',100000002,14,'M',1995,'CD',5,'synthesizer','B'],['Alex',100000002,14,'M',1995,'CD',9,'flute','C'],['Alex',100000002,15,'O',1995,'CD',2,'guitar','C'],['Alex',100000002,15,'O',1995,'CD',12,'guitar','B'],['Alex',100000002,21,'X',2010,'MC',5,'synthesizer','B'],['Alex',100000002,21,'X',2010,'MC',8,'synthesizer','B-flat'],['Alex',100000002,21,'X',2010,'MC',9,'flute','C'],['Tristan',100000003,2,'A',1991,'CD',4,'guitar','B-flat'],['Tristan',100000003,2,'A',1991,'CD',8,'synthesizer','B-flat'],['Tristan',100000003,8,'H',2004,'CD',6,'synthesizer','C'],['Tristan',100000003,10,'J',2004,'CD',4,'guitar','B-flat'],['Tristan',100000003,10,'J',2004,'CD',8,'synthesizer','B-flat'],['Tristan',100000003,10,'J',2004,'CD',9,'flute','C'],['Tristan',100000003,14,'M',1995,'CD',3,'guitar','E'],['Tristan',100000003,14,'M',1995,'CD',5,'synthesizer','B'],['Tristan',100000003,14,'M',1995,'CD',9,'flute','C'],['Tristan',100000003,15,'O',1995,'CD',2,'guitar','C'],['Tristan',100000003,15,'O',1995,'CD',12,'guitar','B'],['Tristan',100000003,19,'S',2010,'MC',4,'guitar','B-flat'],['Graham',100000004,1,'Z',1991,'CD',6,'synthesizer','C'],['Graham',100000004,1,'Z',1991,'CD',7,'synthesizer','E'],['Graham',100000004,4,'C',1991,'CD',2,'guitar','C']]Notown Records has decided to store information about musicians who per-
form on its albums (as well as other company data) in a database. The company
has wisely chosen to hire you as a database designer. Here is the background
information provided by the company:
Each musician that records at Notown has a name, address (number, street
name, and street type), and an SSN.
Each instrument purchased at Notown has an id, a name (suppose only
three names: guitar, synthesizer, flute), and a musical key (suppose only
six types: C, B, E, C-flat, B-flat, E-flat).
Each album recorded on the Notown label has a title, an album identifier,
a copyright date, and a format (CD or MC).
Each musician may participate in several albums and a given album may
be designed by several musicians.
Each instrument can be used in any number of albums, and an album may
use several instruments.
The data is stored in a huge CSV file provided to you (no_town.csv). And
now, they want to take advantage of advanced database design to better manage
the data. To help the company, these are the tasks you need to address:
Task 1: (5 pt) Build a database (named as original_db.db) via Python and
SQLite. And import the data in the CSV file into the database. Your code
should be written in "
task1.py".
Task 2: (5 pt) Draw an ER-model based on the description and build the
database via Python and SQLite that is generated from the ER model. En-
forcing all the key/participation constraints. Your code should be written in
"
task2.py".
Task 3: (5 pt) Extract the corresponding information from the database ".py"
and put it into the corresponding table in the database.
 Task 4: (5 pt) The company asks you to implement a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!