Acknowledgement
I would like to express my sincere gratitude to my Computer
teacher Mr. Molaya Benya for his valuable guidance,
encouragement, and support throughout the completion of
this project. I am also thankful to my parents and friends for
their constant motivation and assistance.
This project has been a wonderful learning experience,
helping me to understand Java programming in a more
practical way. It improved my logical thinking and problem-
solving skills and gave me confidence to apply programming
concepts beyond the classroom.
Submitted by:-
Rohit Botu
Class – 10th
Roll no – 20
Declaration
I hereby declare that this project entitled “Music Emotion
Recommender” is my original work, carried out under the
valuable guidance of my Computer teacher Mr. Molaya
Beneya. The information, logic, and coding used in this
project are true to the best of my knowledge and have not
been copied from any unauthorized source.
This project has been completed as part of my Class 10
Computer Applications course. While working on it, I was
able to practically apply the concepts of Java programming
that I have learned in class. It also helped me to develop
problem-solving skills, logical thinking, and a better
understanding of how programming can be used to create
real-life applications.
Submitted by:-
Rohit Botu
Class – 10th
Roll no – 20
Certificate
This is to certify that I Rohit botu a student of class x
has successfully completed the Computer Applications
project work on the topic “Music Emotion
Recommender”under my guidance and supervision.
The project is a original work.
Submitted by:-
Rohit Botu
Class – 10th
Roll no – 20
Teacher’s signature
__________________
Music affects our emotions and helps us express how we
feel. People choose different songs based on their mood,
such as happy, sad, relaxed, or energetic. Because of this
connection, music can improve or change our feelings at
any moment.
A Music Emotion Recommender is a simple system that
suggests songs according to the user’s mood. The user
enters how they are feeling, and the program displays a set
of songs that match that mood. This idea is used in many
modern music apps that create mood-based playlists.
In this project, the recommender is created using basic Java
concepts like input, decision-making, and simple conditions.
It helps us understand how computers can take user inputs
and produce meaningful results. This project shows how
technology can make listening to music more enjoyable
and personalized.
......Explanation of the Program......
Here is the step by step clear explanation of the program
“Music Emotion Recommender” in Java....
1. Scanner Input:
The program uses Scanner to take input from the user.
It reads the user’s mood.
It also checks if the user wants to continue running the
program.
2. Variables:
Emotion stores the mood entered by the user.
Choice stores whether the user wants to run the program
again.
These variables help the program make decisions based
on user input.
3. Loop (do-while):
The do-while loop allows the program to repeat until the
user types no.
Everything inside the loop runs at least once.
It helps the program take multiple moods without
restarting.
4. Asking for Mood:
The program displays a message asking the user to enter
their mood.
The input is taken as text and converted to lowercase for
easy comparison.
Supported moods: happy, sad, relaxed, energetic.
5. Decision Making (if–else):
The program checks the mood using if, else if, and else.
If the mood matches happy, sad, relaxed, or energetic,
the program prints song suggestions.
If the mood does not match any category, it shows a
“not available” message.
6. Song Recommendations:
Songs are displayed using simple print statements.
Each mood has three recommended songs.
This forms the basic music suggestion feature.
7. Asking to Continue:
After recommending songs, the program asks: “Do you
want to continue? (yes/no)”
If the user enters yes, the loop repeats.
If the user enters no, the program ends.
8. Exit Message:
When the user chooses to stop, the program shows a
thank-you message.
This indicates the end of the program.
9. Closing Scanner:
The [Link]() statement closes the Scanner.
This prevents memory issues and is good
coding practice.
......MUSIC EMOTION RECOMMENDER.....
import [Link];
public class MusicMoodSelector
{
String mood;
String language;
String religion;
void getInput()
{
Scanner sc = new Scanner([Link]);
[Link]("Enter your mood (happy, sad, party,
romantic, study)");
mood = [Link]().toLowerCase();
[Link]("Enter preferred language (hindi, english,
telugu, tamil, sanskrit): ");
language = [Link]().toLowerCase();
[Link]("Enter religion (hindu, christian, muslim,
sikh, none): ");
religion = [Link]().toLowerCase();
}
void happySongs() {
[Link]("Happy Songs:");
if ([Link]("hindi")) {
[Link]("1. Ilahi");
[Link]("2. Badtameez Dil");
[Link]("3. Gallan Goodiyan");
[Link]("4. Kar Gayi Chull");
[Link]("5. Dil Dhadakne Do");
[Link]("6. Nachde Ne Saare");
[Link]("7. London Thumakda");
[Link]("8. Zingaat");
[Link]("9. Malhari");
[Link]("10. Cutiepie");
}
else if ([Link]("english")) {
[Link]("1. Happy - Pharrell");
[Link]("2. Best Day of My Life");
[Link]("3. Good Time");
[Link]("4. Can't Stop the Feeling");
[Link]("5. Shake It Off");
[Link]("6. Uptown Funk");
[Link]("7. Levitating");
[Link]("8. Roar");
[Link]("9. Firework");
[Link]("10. What Makes You Beautiful");
}
else if ([Link]("telugu")) {
[Link]("1. Ramuloo Ramulaa");
[Link]("2. Jigelu Rani");
[Link]("3. Mind Block");
[Link]("4. Daang Daang");
[Link]("5. Butta Bomma");
[Link]("6. Bheemla Nayak");
[Link]("7. Ammayi Pelli");
[Link]("8. Mehabooba Dance Mix");
[Link]("9. Dhimmak Kharab");
[Link]("10. Naatu Naatu");
}
else if ([Link]("tamil")) {
[Link]("1. Vaathi Coming");
[Link]("2. Arabic Kuthu");
[Link]("3. Kadhal Psycho");
[Link]("4. Aalaporan Tamizhan");
[Link]("5. Sodakku");
[Link]("6. Kutty Story");
[Link]("7. Jimikki Kammal");
[Link]("8. Enjoy Enjaami");
[Link]("9. Why This Kolaveri Di");
[Link]("10. Marana Mass");
}
else {
[Link]("1. Vande Mataram");
[Link]("2. Subhasita Stotram");
[Link]("3. Surya Ashtakam");
[Link]("4. Devi Stuti");
[Link]("5. Shiv Tandav Stotram");
[Link]("6. Vakratunda Mahakaya");
[Link]("7. Govinda Damodar");
[Link]("8. Hanuman Chalisa Soft Version");
[Link]("9. Guru Mantra");
[Link]("10. Saraswati Vandana");
}
}
void sadSongs() {
[Link]("Emotional / Mood-Lifting Songs:");
if ([Link]("hindi")) {
[Link]("1. Ilahi");
[Link]("2. Zinda");
[Link]("3. Challa");
[Link]("4. Safarnama");
[Link]("5. Agar Tum Saath Ho");
[Link]("6. Phir Le Aaya Dil");
[Link]("7. Tu Hi Hai");
[Link]("8. Judaai");
[Link]("9. Kabira");
[Link]("10. Tera Yaar Hoon Main");
}
else if ([Link]("english")) {
[Link]("1. Fight Song");
[Link]("2. Rise Up");
[Link]("3. Happy");
[Link]("4. Shake It Out");
[Link]("5. Fix You");
[Link]("6. Someone Like You");
[Link]("7. Let Her Go");
[Link]("8. Lovely");
[Link]("9. Memories");
[Link]("10. Night Changes");
}
else if ([Link]("telugu")) {
[Link]("1. Vachindamma");
[Link]("2. Priyathama");
[Link]("3. Butta Bomma");
[Link]("4. Samajavaragamana");
[Link]("5. Inthandham");
[Link]("6. Emai Poyave");
[Link]("7. Kadalalle");
[Link]("8. Oohale");
[Link]("9. Manohari");
[Link]("10. Ye Chota Nuvvunna");
}
else if ([Link]("tamil")) {
[Link]("1. Anbil Avan");
[Link]("2. Kanaa Kaanum");
[Link]("3. Thalli Pogathey");
[Link]("4. Vinnaithaandi Varuvaayaa Theme");
[Link]("5. Maruvaarthai");
[Link]("6. Munbe Vaa");
[Link]("7. Yedho Ondru");
[Link]("8. Aval");
[Link]("9. Nenjukkule");
[Link]("10. Ennodu Nee Irundhaal");
}
else {
[Link]("1. Vishnu Sahasranamam");
[Link]("2. Shiva Stuti");
[Link]("3. Meditation Music");
[Link]("4. Morning Mantra");
[Link]("5. Krishna Bhajan");
[Link]("6. Maha Mrityunjaya Mantra");
[Link]("7. Rama Raksha Stotra");
[Link]("8. Devi Kavacham");
[Link]("9. Gayatri Mantra");
[Link]("10. Om Chanting");
}
}
void religionSongs() {
[Link]("Religion Based Songs:");
if ([Link]("hindu")) {
[Link]("1. Hanuman Chalisa");
[Link]("2. Om Namah Shivaya");
[Link]("3. Krishna Bhajans");
[Link]("4. Ram Bhajans");
[Link]("5. Devi Stuti");
[Link]("6. Vishnu Sahasranamam");
[Link]("7. Gayatri Mantra");
[Link]("8. Durga Chalisa");
[Link]("9. Shiv Tandav");
[Link]("10. Hare Krishna Mahamantra");
}
else if ([Link]("christian")) {
[Link]("1. Amazing Grace");
[Link]("2. Oceans");
[Link]("3. Way Maker");
[Link]("4. Hallelujah");
[Link]("5. Resurrecting");
[Link]("6. Here I Am to Worship");
[Link]("7. I Surrender");
[Link]("8. Still");
[Link]("9. Hosanna");
[Link]("10. 10,000 Reasons");
}
else if ([Link]("muslim")) {
[Link]("1. Tajdar-e-Haram");
[Link]("2. Kun Faya Kun");
[Link]("3. Bhar Do Jholi");
[Link]("4. Mustafa Mustafa");
[Link]("5. Ilahi Teri Chaukhat Par");
[Link]("6. Maula Ya Salli");
[Link]("7. Qaseeda Burda Shareef");
[Link]("8. Allah Hoo");
[Link]("9. Ya Nabi Salam Alaika");
[Link]("10. Noor-e-Azal");
}
else if ([Link]("sikh")) {
[Link]("1. Waheguru Simran");
[Link]("2. Ik Onkar");
[Link]("3. Satnam Waheguru");
[Link]("4. Mool Mantar");
[Link]("5. Shabad Kirtan");
[Link]("6. Tera Kiya Meetha Lage");
[Link]("7. Deh Shiva Bar Mohe");
[Link]("8. Mittar Pyare Nu");
[Link]("9. Chardi Kala");
[Link]("10. Nanak Naam Jahaz Hai");
}
else {
[Link]("1. Peaceful Instrumentals");
[Link]("2. Nature Music");
[Link]("3. Meditation Bells");
[Link]("4. Healing Frequencies");
[Link]("5. Soft Piano");
[Link]("6. Rain Sounds");
[Link]("7. Forest Ambience");
[Link]("8. Calm Waves");
[Link]("9. Wind Chimes");
[Link]("10. Relaxation Music");
}
}
void start() {
getInput();
if ([Link]("happy")) {
happySongs();
}
else if ([Link]("sad")) {
sadSongs();
}
else {
religionSongs();
}
}
public static void main(String[] args) {
MusicMoodSelector obj = new MusicMoodSelector();
[Link]();
}
}