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 : 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'
'University'
'streettype'
n
tableAntonioFCD'flute',CAntonioXMC'synthesizer',BAntonioXMC'synthesizer',Bflat'AntonioXMC'flute',CAntonioVMC'synthesizer',CAbelDCD'guitar',EAbelDCD'synthesizer',CAbelFCD'flute',CAbelPMC'guitar',EAbelPMC'synthesizer',BAbelPMC'synthesizer',Bflat'AlexICD'synthesizer',CAlexICD'guitar',BAlexMCD'guitar',EAlexMCD'synthesizer',BAlexMCD'flute',CAlexOCD'guitar',CAlexOCD'guitar',BAlexXMC'synthesizer',BAlexXMC'synthesizer',Bflat'AlexXMC'flute',CTristanACD'guitar',Bflat'TristanACD'synthesizer',Bflat'TristanHCD'synthesizer',CTristanJCD'guitar',Bflat'TristanJCD'synthesizer',Bflat'TristanJCD'flute',CTristanMCD'guitar',ETristanMCD'synthesizer',BTristanMCD'flute',CTristanOCD'guitar',CTristanOCD'guitar',BTristanSMC'guitar',Bflat'GrahamZCD'synthesizer',CGrahamZCD'synthesizer',EGrahamCCD'guitar',CNotown 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 Cflat, Bflat, Eflat
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 notown.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 : pt Build a database named as originaldbdb via Python and
SQLite. And import the data in the CSV file into the database. Your code
should be written in
taskpy
Task : pt Draw an ERmodel based on the description and build the
database via Python and SQLite that is generated from the ER model. En
forcing all the keyparticipation constraints. Your code should be written in
taskpy
Task : pt Extract the corresponding information from the database py
and put it into the corresponding table in the database.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
