Report 18is036 37

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 18

MUSIC MANAGEMENTMENT SYSTEM

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.

1.2 INTRODUCTION TO MUSIC MANAGEMENT SYSTEM

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

1.2.1 PROBLEM STATEMENT

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:

 Login for user


 Add information(for that user has to provide music id,artist name,music name, price
etc)
 View/check a list of records,modify and remove records.

Department of ISE, CEC Page 2


MUSIC MANAGEMENTMENT SYSTEM

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.

Major limitations of existing system are

 More man power


 Time consuming
 Loss of records

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.

Main objectives of proposed system are

 Helps to overcome the manual errors and maintain a computerized system.


 Intends to introduce more user friendliness in the various activities such as record
maintenance and searching.
 No loss of records
 Reduced time consumption

Department of ISE, CEC Page 3


MUSIC MANAGEMENTMENT 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.

3.2 HARDWARE REQUIREMENTS

 Processor - Corei3
 RAM - 128MB
 HardDisk - 500MB

3.3 SOFTWARE REQUIREMENTS

 Operating System - Windows


 C++ IDE - CodeBlocks

3.3.1 LANGUAGE USED


 C++
 HTML
 CSS

Department of ISE, CEC Page 4


MUSIC MANAGEMENTMENT SYSTEM

CHAPTER 4

DESIGN
4.1 ALGORITHM

Step 1: Start

Step 2: Enter username and password to login.

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.

Step 12: Stop

Department of ISE, CEC Page 5


MUSIC MANAGEMENTMENT SYSTEM

4.2 FLOW CHART

FIG:4.2.1

Department of ISE, CEC Page 6


MUSIC MANAGEMENTMENT SYSTEM

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");

file.open("musicM.txt", ios::binary| ios::out| ios::app);

m.enter_data();

file.write((char*)&m, sizeof(m));

file.close();

void enter_data()

cout<<"Enter following data: "<<endl;

cout<<"Enter track's ID: "; cin>>id;

cout<<"Enter track's name: "; cin>>name;

cout<<"Enter category(new/old): "; cin>>category;

cout<<"Enter type(mp3/m4a/flac): "; cin>>type;

cout<<"Enter Artist: "; cin>>artist;

cout<<"Enter Price: "; cin>>price;

Department of ISE, CEC Page 7


MUSIC MANAGEMENTMENT SYSTEM

cout<<"Enter Stock: "; cin>>stock;

Modify():

 This function enables us to modify the details of entered music record.

void modify()

system("cls");

int n;

int state=0;

cout<<"Enter ID of the record that you want to edit: "; cin>>n;

file.open("musicM.txt", ios::binary| ios::in| ios::out);

while(file.read((char*)&m, sizeof(m))!= NULL)

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)

Department of ISE, CEC Page 8


MUSIC MANAGEMENTMENT SYSTEM

cout<<"ID not found!"<<endl;

file.close();

Display():

 This function is used to display the records of music details.

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;

Department of ISE, CEC Page 9


MUSIC MANAGEMENTMENT SYSTEM

Delete():

 This function is used to delete the details of music records.

void delete_rec()

system("cls");

int n;

cout<<"Enter ID of the record that you want to delete: "; cin>>n;

file.open("musicM.txt", ios::in| ios::binary);

file1.open("temp.txt", ios::out| ios::binary);

while(file.read((char*)&m, sizeof(m)) != NULL)

if(m.getid() != n)

file1.write((char*)&m, sizeof(m));

file1.close();

file.close();

remove("musicM.txt");

rename("temp.txt", "musicM.txt");

cout<<"Record Deleted Successfully!"<<endl;

Department of ISE, CEC Page 10


MUSIC MANAGEMENTMENT SYSTEM

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:

Department of ISE, CEC Page 11


MUSIC MANAGEMENTMENT SYSTEM

cout<<"Number not valid!"<<endl;

Department of ISE, CEC Page 12


MUSIC MANAGEMENTMENT SYSTEM

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

6.2 DIFFERENT RECORD OPERATIONS:

 This page enables the user to perform operations like adding,modifying, viewing,deleting
records.

FIG: 6.2.1

Department of ISE, CEC Page 13


MUSIC MANAGEMENTMENT SYSTEM

6.3 ADD RECORD:

 The user can add a new record by entering the details such track id, track name,artist
name, price etc.

FIG:6.3.1

6.4 SEARCH RECORDS:

 Enables the user to search record based on category like music name, artist name ,type of
music.

FIG:6.4.1

Department of ISE, CEC Page 14


MUSIC MANAGEMENTMENT SYSTEM

6.5 DISPLAY:

 This displays all the records that are added.

FIG: 6.5.1

6.6 DELETE RECORD:

 Used to delete a existing record.

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:

 Enables the user to get a preview of the song.

FIG: 6.8.1

Department of ISE, CEC Page 16


MUSIC MANAGEMENTMENT SYSTEM

CONCLUSION AND FUTURE ENHANCEMENT


Nowadays everything is getting computerized. Manual work usually consumes lot of time and is
error prone. To make it easy and manage the records this application is very helpful. Thus, Music
Management System overcomes most of the limitations of the existing system along with being
very user friendly application.

Future Enhancement

 We can update this system as online application


 It can be implemented in any servers in the Internet providing an easy access to the
clients.
 Further we can update the current application where the customers of the music stores
would be able to purchase songs without visiting the stores.
 Online transactions of the purchased music can also be implemented.

Department of ISE, CEC Page 17


MUSIC MANAGEMENTMENT SYSTEM

REFERENCES
 https://www.w3schools.com/

 https://www.youtube.com/

 https://www.geeksforgeeks.org/
 https://github.com/

Department of ISE, CEC Page 18

You might also like