Professional Documents
Culture Documents
Report 18is036 37
Report 18is036 37
Report 18is036 37
CHAPTER 1
INTRODUCTION
1.1 INTRODUCTION TO FILE STRUCTURES
File : A data structure on secondary storage which acts as a non-volatile container for data.
File is a name given to any kind of document stored in any type of storage device which can be
read by the computer. A file is identified by a name followed by a filename extension.
File Structures is the Organization of Data in Secondary Storage devices in such a way
that minimize the access time and the storage space. A File structure is a combination
of representations for data in files and of operations for accessing the data. A File structure allows
applications to read, write and modify data. It might also support finding the data that matches
some search criteria or reading through the data in some particular order.
The music industry is one of the largest creative industries in the world, combing
different elements of the business to produce and sell music to its audience. The development
of the industry has evolved on a very large scale since the 19th century, when it was the
printed sheet music being the leading product. Maintaining all musical records such as create
order, calculate bill, adding new music, editing the music description, and deleting any item
from large music library was not an easy task on regular basis.
The “Music Management System” is a C++ Mini Project based on File Structures. It
maintains all musical records such as, add new music data, edit the description, and delete
any music item. The system allows the user to search a particular music, if the particular
information of the song is known. The user can also play the song and also place an order
for the music of their choice. Various details such as Name, Type, Category and Artist are
read through console using read operation and stored efficiently.
Department of ISE, CEC Page 1
MUSIC MANAGEMENTMENT SYSTEM
The Music management system allows the user to maintain record of the music. The
music management is the application that allows the users to add new music item, delete an
item as well as place the order for the music of their desired choice. Also it allows the user
to modify the music items present in the list and play the music of their choice.
1.2.2 SCOPE
The system provides an interface that is helpful to maintain the information such as music id,
artist name, price etc. and allows user to delete, view and modify information in the record.
The proposed system includes the following features:
CHAPTER 2
LITERATURE SURVEY
Music plays a very important and vital role in the lives of the people. Music is also known to be
the universal language of humanity. It has the power to bring positivity and entertainment in the
lives of people. The music industry is one of the largest creative industries in the world, combing
different elements of the business to produce and sell music to its audience. The development of
the industry has evolved on a very large scale since the 19th century. In the existing music
management systems, most of the information had to be maintained with the help of pen and paper
method which would lead to many errors. This system need more man power to track records.
Retrieving old records is very time consuming. Here all the works are maintained on paper so it is
very difficult to secure records related to music.
Hence the existing system has more workload for the authorized person, but in case of proposed
system user need not use pen and paper method .The user can maintain the information related to
music by adding, removing, updating and viewing of the details after login into the system.
CHAPTER 3
SYSTEM REQUIREMENTS
Requirement analysis in system engineering and software engineering will encompasses those
tasks that go into determining the needs or conditions to meet for a new or altered product, taking
into account the possibly conflicting requirements of the various stakeholders, analyzing,
documenting, validating and managing software or system requirements. Requirements analysis is
critical to the success of a systems or software or hardware project. The requirements should be
documented, actionable, measurable, testable, traceable, related to identified business needs or
opportunities, and defined to a level of detail sufficient for system design.
Processor - Corei3
RAM - 128MB
HardDisk - 500MB
CHAPTER 4
DESIGN
4.1 ALGORITHM
Step 1: Start
Step 3: Print all option and select one option. If 1 goto step 4, If 2 goto step 5,if 3 goto step 6, if
4 goto step 7, If 5 goto step 8, If 6 goto step 9, If 7 goto step 10, if 8 goto step 11.
Step 4: (Add to file) Open the file. Add music track and details.Store the details close the file
and goto step 3.
Step 5: (Display file) Open the file and print track’s details using getline. close the file and goto
the step 3.
Step 6: (search file) Open the file and enter the details of the song based on the options given.
close the file and goto step 3.
Step 7: (Display sold items file) Open the file and enter the name of the track and sold items is
displayed. Close the file and goto step 3.
Step 8: (Modify record) open the file. Enter the id of the track to be modified and enter the
modified details. Close the file and goto step 3.
Step 9: (Delete file) Open the file. Enter the track id to be deleted. Close the file and goto step
3.
Step 10: (Create order) Open the file. Enter the track name that has to be ordered. Enter the
quantity and total cost will be displayed. Close the file and goto step 3.
Step 11: (playing the music)Open the file and music can be played using link.
FIG:4.2.1
CHAPTER 5
IMPLEMENTATION
5.1 USER DEFINED FUNCTIONS
Add():
This function is used to add music details like artist name, music name,album name etc.
void write_data()
system("cls");
m.enter_data();
file.write((char*)&m, sizeof(m));
file.close();
void enter_data()
Modify():
void modify()
system("cls");
int n;
int state=0;
if(m.getid()==n)
state=1;
file.seekg(0,ios::cur);
m.enter_data();
file.seekp(file.tellg() - sizeof(m));
file.write((char*)&m, sizeof(m));
}if(state==0)
file.close();
Display():
void display()
cout<<"ID: "<<id<<endl;
cout<<"Name: "<<name<<endl;
cout<<"Category: "<<category<<endl;
cout<<"Type: "<<type<<endl;
cout<<"Artist: "<<artist<<endl;
cout<<"Price: $"<<price<<endl;
cout<<"Stock: "<<stock<<endl;
Delete():
void delete_rec()
system("cls");
int n;
if(m.getid() != n)
file1.write((char*)&m, sizeof(m));
file1.close();
file.close();
remove("musicM.txt");
rename("temp.txt", "musicM.txt");
Search():
This function is used to search the music record based on different category like artist
name,music id etc.
void search_rec()
int n;
search_options();
cin>>n;
switch(n)
case 1:
search_type();
break;
case 2:
search_name();
break;
case 3:
search_category();
break;
case 4:
search_artist();
break;
default:
CHAPTER 6
RESULTS
6.1 LOGIN PAGE:
A login page is a entry page that requires user identification and authentication, regularly
performed by entering a username and password combination.
FIG: 6.1.1
This page enables the user to perform operations like adding,modifying, viewing,deleting
records.
FIG: 6.2.1
The user can add a new record by entering the details such track id, track name,artist
name, price etc.
FIG:6.3.1
Enables the user to search record based on category like music name, artist name ,type of
music.
FIG:6.4.1
6.5 DISPLAY:
FIG: 6.5.1
FIG: 6.6.1
Department of ISE, CEC Page 15
MUSIC MANAGEMENTMENT SYSTEM
6.7 CREATE_ORDER:
Used to create order for the buyer which also calculates the total amount based on
quantity.
FIG: 6.7.1
6.8 PLAY_MUSIC:
FIG: 6.8.1
Future Enhancement
REFERENCES
https://www.w3schools.com/
https://www.youtube.com/
https://www.geeksforgeeks.org/
https://github.com/