Using code in C
u can open image in new tab so can you can see clearly because I can only post 2 images
SONGS LIST
IDGAF - Dua Lipa FRIENDS - Marshmello, Anne-Marie The Middle - Zedd, Maren Morris, Grey Best Part - H.E.R., Daniel Caesar All The Stars (with SZA) - Kendrick Lamar, LZA Wolves - Selena Gomez, Marshmello God's Plan - Drake Rewrite The Stars - Zac Efron, Zendaya Havana - Camila Cabello, Young Thug Perfect - Ed Sheeran
Transcribed Image Text: In this task, you are asked to build a simple music playlist by using the concept of
Queue with Linked List. The program must be written in C programming language.
SONG LIST
1) IDGAF
2) FRIENDS - Marshnello. Anne-Nar ie
3) The Hiddle -
4) Best Part - H.E.R. Daniel Caesar
5) All The Stars (with SZA) - Kendrick Lanar, LZA
6 Holves Selena Gonez, Marshnello
2) God's Plan - Drake
8) Reurite The Stars - Zac Efron, Zendaya
Havana - Canila Cabello. Voung Thug
10) Perfect - Ed Sheeran
Dug Lipa
Zedd, Maren Morris, Grey
Every time the program starts, it shows three basic information to the users:
1. SONG LIST
2. NEXT IN QUEUE : List of song in the queue
: List of song that can be chosen by the users
NEXT IN QUEUE
1) Havana - Canila Cabello. Young Thug
3. MAIN MENU
: Show the main menu of the program
HAIN HENU
1. Add Husic Into Queue
Next Husic
3. Clear 0ueue
4. Exit
Input your choice: .
NOTE: The SONG LIST can be found in the provided document for this task.
a CanALONDounioatLinitiedt.a
SONG LIST
IOGAF - Dua Lipa
2) FRIENDS
3) The Hiddle Zedd. Maren Norris, Grey
4) Best Part - H.E.R. Daniel Caesar
5) All The Stars (with SZA) - Kendrick Lanar , LZA
6) Molves- Selena Gonez. Harshmello
God's Plan - Drake
8) Reurite The stars - Zac Efron, Zendaya
9) Havana - Conila Cabello. Voung Thug
10) Perfect - Ed Sheeran
The program shows the music in the queue
-
Harshnello. Anne-Nar ie
2. Next Music
This option orders the program to play the next music in the queue. If there are
no music in the queue, the system will tell the users to input some music first.
NEXT IN QUEUE
Oh no.. The queue is enp ty..
a CanALONDownioa Linitiest.
Havana - Canila Cabello, Voung Thug
10) Perfect - Ed Sheeran
MAIN HENU
1. Add Music Into Queue
2. Next Husic
3. Clear Queue
4. Exit
Input your choice:-
NEXT IN QUEUE
Havana - Canila Cabello, Voung Thug
2) All The Stars (uith SZA) - Kendrick Lanar, LZA
3) The Hiddle- Zedd, Haren Morris, Grey
4) Holves - Selena Gonez, Marshmello
5) Havana - Canila Cabello, Young Thug
In the main menu, there are 4 options:
7) Best Part - H.E.R.. Daniel Caesar
8) Molves - Selena Gonez. Harshnello
1. Add Music into Queue
In this menu, user can pick a song that he/she likes into the queue. Users input
the songs by their corresponding numbers (i.e. between 1 and 10). If the
MAIN HENU
1. Add Husic Into Queue
Next Husic
3. Clear Oеце
4. Exit
Input your choice: 2
Now Playing: a Havana - Canila Cabello. Young Thug
Press ANY KEY to STOP playing the music!
inputted value is wrong, the system will show an error message. If it's correct,
the system will add the chosen song into the queue and inform the users.
Users chose next music and the program play the music from the queue
a CanALONDounioatLinitiest.
Best Part - H.E.R.. Daniel Caesar
ši MI The Stars (with SZA) - Kendrick Lamar, LZA
6) Holves - Selena Gonez. Marshnello
?) God's Plan - Drake
8) Reurite The Stars - Zac Efron, Zendaya
2) Havana - Coni la Cabello, Voung Thug
10) Perfect - Ed Sheeran
CanALONDounioa Linitiest.
9 Molves Selena Gonez, Harshnello
2) God's Plan - Drake
3) Reurite The Stars - Zac Efron, Zendaya
Havana - Canila Cabello. Young Thug
10) Perfect - Ed Sheeran
NEXT IN QUEUE
Oh no.. The queue is enpty..
NEXT IN QUEUE
1) All The Stars_(uith SZA) - Kendrick Lamar, LZA
2) The Hiddle
3) Molves - Selena Gonez, Harshnello
4) Havana - Canila Cabello, Young Thug
5) Best Part - H.E.R.. Daniel Caesar
6) Best Part - H.E.R., Daniel Caesar
i Volves - Selena Gonez. Marshaello
HAIN MENO Into Queue
1.
-
Zedd, Maren Morris, Grey
Add Music Into Queue
2. Next Husic
3. Clear Queue
4. Exit
Input your choice: 1
Mhat music nunber will be added into the queue (1..101 ? 0
ERROR: The music nunber Must be betueen 1 and 101
hat music nunber will be added into the queue (1..10] ? 15
ERROR: The nusic nunber must be between 1 and 101
What music nunber will be added into the queue (1..101 ?9
The nusic "Havana - Canila Cabello. Young Thug" is added to the queuet
HAIN HENU
Add Music Into Queue
Next Husic
3. Clear Queue
4. Exit
Input your choice:
A music is added to the queue
The music that has been played recently is removed from the queue
Transcribed Image Text: S CanALONnia tlel.
1OGF Duao Lipalo Anne-Nar ie
2) FRIENDS- Marshnello. Anne-Har ie
3) The Hiddle - Zedd. Haren Norris. Grey
4) Best Part - H.E.R. Daniel Caesar
S! All The Stars (uith SZA) - Kendrick Lanar, LZA
6) Holves Selena Gonez, Marshnello
7) God's Plan - Drake
8) Reurite The Stars - Zac Efron, Zendaya
Havana - Conila Cabello, Voung Thug
10) Perfect - Ed Sheeran
Dua Lipa
O CanRALONDownioatAa ivetledl.
1) IOGAF - Dua Lipa
2) FRIENDS - Harshnello. Anne-Nar ie
3) The Hiddle
4) Best Part - H.E.R.. Daniel Coesar
ši All The Stars (uith SZA) - Kendrick Lanar. LZA
6) Molves
2) God's Plan - Drake
8) Rewrite The Stars - Zac Efron, Zendaya
Havana- Conila Cabello, Voung Thug
10) Perfect - Ed Sheer an
- Zedd. Maren Morris. Grey
Selena Gonez, Harshnello
NEXT IN QUEUE
Oh no.. The queue is enp ty.
MAIN HENU
1. Add Husic Into Queue
Noxt Husic
3. Clear Queue
4. Exit
Input your choice: 2
NEXT IN QUEUE
Oh no.. The queue is enp ty..
MAIN HENU
1. Add Husic Into Queue
2. Next Husic
3. Clear Queue
4. Exit
Input your choice: 3
Put some music into the queue first!
If there are no music in the queue, the program will tell the users to insert
some music first
Put some music into the queue first!
If there are no music in the queue, the program will tell the users to insert
3. Clear Queue
The third option is to clear all music from the queue. If there are no music in the
queue, the program will tell users to input some music first.
some music first
4. Exit
The last menu is to exit from the program.
CanALONDounioatLinitiest.a
S) All The Stars (with SZA) - Kendrick Lanar, L2F
Holves - Selena Gonez. Marshnello
7) God's Plan - Drake
8) Reurite The Stars - Zac Efron, Zendaya
9) Havana - Canila Cabello. Voung Thug
10) Perfect - Ed Sheeran
Selena Gonez, Marshnello
CanALONDounioatLinitiest.a
2) FRIENDS - Harshnello, Anne-Nar ie
3) The Hiddle - Zedd, Maren Horris. Grey
4) Best Part - H.E.R., Darnjel Coesar
5) Al The Stars (uith SZA) - Kendrick Lanar. LZA
Molves - Selena Gonez, Marshnello
7) God's Plan - Drake
8) Reurite The Stars - Zac Efron, Zendaya
2) Havana - Canila Cabello, Young Thug
10) Perfect - Ed Sheeran
NEXT IN QUEUE
1) IDGAF -
2) FRIENDS -
3) The Hiddle -
4 Best Part - H.E.R.. Daniel Coesar
5) All The Stars (with SZA) - Kendrick Lanar, LZA
Dug Lipa
Marshnello, Anne-Nar ie
Zedd. Maren Norris, Grey
NEXT IN QUEUE
Oh no.. The queue is enpty.
MAIN HENU
. Add Husic Into Queue
2. Next Husic
3. Clear Queue
4. Exit
Input your choice: 3
MAIN HENU
1. Add Husic Into Queue
2. Next Husic
3. Clear Oueue
Exit
Input your choice: 4
Vour music queue has been cleared!
Users clear all music in the queue with the third menu
Process exited after 1552 seconds wi th return walue
Press anw key to continue
0
SONG LIST
1) IDGAF - Dua Lipa
2) FRIENDS - Marshnello. Anne-Narie
3) The Hiddle - Zedd. Maren Norris. Grey
4) Best Part-
š) All The Stars (uith SZA) - Kendrick Lanar, LZA
6) Holves Selena Gonoz. Marshmello
?! God's Plan - Drake
8) Reurite The Stars-
9) Havana - Conila Cabello, Voung Thug
10) Perfect - Ed Sheeran
H.E.R. Daniel Caesar
TRY THE EXE FILE TO EXPLORE MORE
Zac Efron, Zendoya
----- GOOD LUCK -----
NEXT IN QUEUE
Dh no.. The queue is enpty..
MAIN HENU
Add Husic Into Queue
2. Next Husic
3. Clear Queue
4. Exit
Input your choice:-
The queue is cleared by the program