The music that has been played recently is removed from the queue The queue is cleared by the program ALON AF-Dua Lina CAU 1) IDGAF 2 FRIENDS 3) The Hiddle 45 Best Part-HR.Deniel CoS Grey 5 nii The Stars (with Szn)- Kendrick Lamar, LZ 6) Molves Selena Gomez. Harshnello God's Plan - Drake Harshnello. Anne-Harie Zedd, Haren Horris. Grey H.E.R. Daniel Caesar CenLONDounadAeeed. IDGAF 2) FRIENDS - 3) The Middle - Best Part - H.E.R., Daniel Caesar 5) Al The Stars (with SZA) - Kendrick Lamar, LZA 6) Molves- 72) God's Plan - Drake 8) Rewrite The Stars - Zac Efron, Zendaya Havana - Camila Cabello, Voung Thug 10) Perfect - Ed Sheeran Dua Lipa Marshmello. Anne-Marie Zedd, Maren Morris. Grey 8) Rewrite The Stars = Zac Efron. Zendaya 12) Havana = Camila Cabello. Young Thug 10) Perfect - Ed Sheeran Selena Gomez, Marshaello NEXT IN QUEUE Oh no.. Îhe queue is empty.. HAIN MENU 1. Add Husic Into Queue 2. c NEXT IN QUEUE Oh no.. The queue is empty.. Next Husic 3. Clear Queue Exit Input your choice: 2 MAIN MENU Add Musiç 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! Clear Queue The third option is to clear all music from the queue. If there are no music in the queve, the program will tell users to input some music first. If there are no music in the queue, the program will tell the users to insert some music first C ON 4. Exit 52 A The Stars (wi th SZA) - Lanar , L2H 25 eelena omez. Marshaelle Kendrick The Jast menu is to exit from the program. God's Plan - Drake s Reurite The Stars- Zac Efron, Zendaya Havena C 10) Perfect -Ed Sheeran Cami la Cabelle. Voung Thug I CbeLONDounieade.ee 2) FRIENDS - Marshaello, Anne-Marie 3) The Middle - Zedd, Maren Morris, Grey 4) Best Part - H.E.R., Daniel Caesar 5) All The Stars (with SZA) - Kendrick Lamar, LZA Wolves - Selena Gomez. Marshmello 7) God's Plan - Drake 8) Rewrite The $tars - Zac Efron, Zendaya 9) Havana - Camila Cabello, Voung Thug 10) Perfect - Ed Sheeran NEXT IN QUEUE IOG Dua Lipa Marshello. Anne-Marie 3) The Hiddle 4) Best Par All The Stars (with SZA) Zedkd, Haren Horris. Grey H.E.R. Daniel Caesar Kendrick Lamar , LZA AIN HENU L. dd Hsic Into Queue Next Hsic Clear Queue Exit Input vour choice: 3 Vour music queue has been cleared! CEXT IN QUEUE Dh no.. The queue is empty.. Users clear all music in the queue with the third menu MAIN MENU 1. Add Music Into Queue 2. Next Music 3. Clear Queue 4. Exit Input your choice: 4 O CA Download ed SONG LIST 1) IDGAE 25 FRIENDS 3) The Hiddle Best Part 5) ALI The Stars (mith szA) - Kendrick Molves Selena Gomez. Harshmollo 75 Gods Plan Drake 8) Reurite The Star Dun Lipa Harshnello. Anne-Harie Zedd. Haren Horris. Grey H.E.R. Danjel Caesar Kendrick Lamar , LZA ------ -----~~~~~---------~ Zac Efron, Zendava Comila Cobello, Voung Thug Process exited af ter 1552 seconds with return value ® ress any key to continue hoi Per fect -td Sheeran NEXT IN QUE UE ph no.. The queue is empty The quee is emty.. HAIN HENU 1. Add Husic Into Queue Next Hus ic Clear Oueue Exit Innut HOUr chnice: TOY TUE F YE FI LETO EXD LODE NODE

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

USING C CODE

IF U CANNOT SEE THE CODE CLEARLY OPEN IMAGE IN NEW TAB :)

SONG 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

5) All The StaenaGomez, Marshendrick Lamar, LZA
2) FRIEMiddle
The music that has been played recently is removed from the queue
The queue is cleared by the program
O C\Users\AVALON\Downloads\Untitled1.exe
1) IDGAF
3 FRIEN ddle
3) The
4) Best Part
Dua Lipa
Marshmello
Zedd, Maren Morris, Grey
H.E.R., Daniel Caesar
(with SZA)
Anne-Mar ie
O CAUsers\AVALON\Downloads\Answer\Untitled1.exe
1) IDGAF
2) FRIENDS
3) The Middle - Zedd, Maren Morris, Grey
4) Best Part
5) All The Stars (with SZA)
6) Wolves
7) God's Plan - Drake
8) Rewrite The Stars - Zac Efron, Zendaya
9) Havana - Camila Cabello, Young Thug
10) Perfect - Ed Sheeran
Dua Lipa
Marshmello, Anne-Marie
63 Wolves -
7) God's Plan - Drake
Rewrite The Stars
9) Havana - Camila Cabello, Young Thug
10) Perfect
H.E.R., Daniel Caesar
Zac Efron, Zendaya
Kendrick Lamar, LZA
Ed Sheeran
Selena Gomez, Marshmello
NEXT IN QUEUE
Oh no.
The queue is empty.
MAIN MENU
1. Add Music Into Queue
2. Next Music
3. Clear Queue
4. Exit
Input your choice: 2
NEXT IN QUEUE
Oh no.
The queue is empty..
MAIN MENU
1. Add Music Into Queue
2. Next Music
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!
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.
If there are no music in the queue, the program will tell the users to insert some music first
O CAUsers\AVALONDownloadsUntitled1.exe
5) All The Stars (wi th SZA) -
6) Wolves - Selena Gomez, Marshmello
7) God's Plan - Drake
8) Rewrite The Stars - Zac Efron, Zendaya
16) Perfect
4. Exit
The Jast menu is to exit from the program.
Kendrick Lamar, LZA
Camila Cabello, Young Thug
Ed Sheeran
O CAUsers\AVALOMDownloads\Untitled1.exe
2) FRIENDS
3) The Middle
4) Best Part - H.Ę.R., Daniel Caesar
5) All The Stars (with SZA) - Kendrick Lamar, LZA
6) Wolves - Selena Gomez, Marshmello
7) God's Plan - Drake
8) Rewrite The Stars - Zac Efron, Zendaya
9) Havana - Camila Cabello, Young Thug
10) Perfect - Ed Sheeran
NEXT IN QUEUE
1) IDGAF - Dua Lipa
Marshmello, Anne-Marie
Zedd, Maren Morris, Grey
3)
Best Part
5) All The Stars (with SZA)
EMarshmello, Anne-Marie
- Zedd, Maren Morris, Grey
H.E.R.. Daniel Caesar
Kendrick Lamar, LZA
MAIN MENU
1. Add Music Into Queue
2. Next Music
3. Clear Queue
Input your choice:
3
CEXT IN QUEUE
Oh no.. The queue is empty..
Your music queue has been cleared!
Users clear all music in the queue with the third menu
MAIN MENU
1. Add Music Into Queue
2. Next Music
3. Clear Queue
4. Exit
Input your choice: 4
O CAUsersLAVALON\Downloads\Untitled1.exe
SONG LIST
1) IDGAF
23 FRIENDS
3) The Middle - Zedd, Maren Morris,
Best Par t - H.E.R.. Daniel Caesar
5) All The Stars (with SZA)
6) Wolves- Selena Gomez, Marshmello
God's Plan - Drake
8) Rewrite The Stars :
Dua Lipa
Marshmello, Anne-Marie
Grey
Kendrick Lamar. LZA
Process exited after 1552 seconds with return value 0
Press any key to continue
Zendaya
Cami
Ed Sheeran
Cabello.
10) Perfect ·
NEXT IN QUEUE
Oh no.. The queue is empty..
MAIN MENU
1. Add Music Into Queue
Next Music
3.
Clear Queue
4. Exit
Input your choice:
TRY THE EXE FILE TO EXPLORE MORE
Transcribed Image Text:5) All The StaenaGomez, Marshendrick Lamar, LZA 2) FRIEMiddle The music that has been played recently is removed from the queue The queue is cleared by the program O C\Users\AVALON\Downloads\Untitled1.exe 1) IDGAF 3 FRIEN ddle 3) The 4) Best Part Dua Lipa Marshmello Zedd, Maren Morris, Grey H.E.R., Daniel Caesar (with SZA) Anne-Mar ie O CAUsers\AVALON\Downloads\Answer\Untitled1.exe 1) IDGAF 2) FRIENDS 3) The Middle - Zedd, Maren Morris, Grey 4) Best Part 5) All The Stars (with SZA) 6) Wolves 7) God's Plan - Drake 8) Rewrite The Stars - Zac Efron, Zendaya 9) Havana - Camila Cabello, Young Thug 10) Perfect - Ed Sheeran Dua Lipa Marshmello, Anne-Marie 63 Wolves - 7) God's Plan - Drake Rewrite The Stars 9) Havana - Camila Cabello, Young Thug 10) Perfect H.E.R., Daniel Caesar Zac Efron, Zendaya Kendrick Lamar, LZA Ed Sheeran Selena Gomez, Marshmello NEXT IN QUEUE Oh no. The queue is empty. MAIN MENU 1. Add Music Into Queue 2. Next Music 3. Clear Queue 4. Exit Input your choice: 2 NEXT IN QUEUE Oh no. The queue is empty.. MAIN MENU 1. Add Music Into Queue 2. Next Music 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! 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. If there are no music in the queue, the program will tell the users to insert some music first O CAUsers\AVALONDownloadsUntitled1.exe 5) All The Stars (wi th SZA) - 6) Wolves - Selena Gomez, Marshmello 7) God's Plan - Drake 8) Rewrite The Stars - Zac Efron, Zendaya 16) Perfect 4. Exit The Jast menu is to exit from the program. Kendrick Lamar, LZA Camila Cabello, Young Thug Ed Sheeran O CAUsers\AVALOMDownloads\Untitled1.exe 2) FRIENDS 3) The Middle 4) Best Part - H.Ę.R., Daniel Caesar 5) All The Stars (with SZA) - Kendrick Lamar, LZA 6) Wolves - Selena Gomez, Marshmello 7) God's Plan - Drake 8) Rewrite The Stars - Zac Efron, Zendaya 9) Havana - Camila Cabello, Young Thug 10) Perfect - Ed Sheeran NEXT IN QUEUE 1) IDGAF - Dua Lipa Marshmello, Anne-Marie Zedd, Maren Morris, Grey 3) Best Part 5) All The Stars (with SZA) EMarshmello, Anne-Marie - Zedd, Maren Morris, Grey H.E.R.. Daniel Caesar Kendrick Lamar, LZA MAIN MENU 1. Add Music Into Queue 2. Next Music 3. Clear Queue Input your choice: 3 CEXT IN QUEUE Oh no.. The queue is empty.. Your music queue has been cleared! Users clear all music in the queue with the third menu MAIN MENU 1. Add Music Into Queue 2. Next Music 3. Clear Queue 4. Exit Input your choice: 4 O CAUsersLAVALON\Downloads\Untitled1.exe SONG LIST 1) IDGAF 23 FRIENDS 3) The Middle - Zedd, Maren Morris, Best Par t - H.E.R.. Daniel Caesar 5) All The Stars (with SZA) 6) Wolves- Selena Gomez, Marshmello God's Plan - Drake 8) Rewrite The Stars : Dua Lipa Marshmello, Anne-Marie Grey Kendrick Lamar. LZA Process exited after 1552 seconds with return value 0 Press any key to continue Zendaya Cami Ed Sheeran Cabello. 10) Perfect · NEXT IN QUEUE Oh no.. The queue is empty.. MAIN MENU 1. Add Music Into Queue Next Music 3. Clear Queue 4. Exit Input your choice: TRY THE EXE FILE TO EXPLORE MORE
DUMarshmello, Anne-Marie
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.
A music is added to the queue
O CAUsers\AVALON\Downloads\Untitled1.exe
SONG LIST
1) IDGAE
2) FRIENDS -
3) The Mi ddle
Best Part
5) All The Stars (with SZA) - Kendrick Lamar, LZA
6) Wolves
God's Plan - Drake
81 Rewrite The Stars - Zac Efron, Zendaya
9) Havana
10) Perfect
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
3. MAIN MENU
: List of song that can be chosen by the users
-Zedd, Maren Morris, Grey
H.E.R.. Daniel Caesar
Show the main menu of the program
Selena Gomez, Marshmello
NOTE: The SONG LIST can be found in the provided document for this task.
Camila Cabello, Young Thug
Ed Sheeran
NEXT IN QUEUE
1) Havana
Camila Cabello, Young Thug
O CAUsers\AVALON\Downloads\Untitled1.exe
SONG LIST
1) IDGAF -
2) FRIENDS
3) The Middle
4) Best Part - H.E.R., Daniel Caesar
5) All The Stars (with SZA) - Kendrick Lamar, LZA
MAIN MENU
1. Add Music Into Queue
Next Music
3. Clear Queue
4. Exit
Input your choice: -
Dua Lipa
Marshmello, Anne-Marie
Zedd, Maren Morris, Grey
Şelena Gomez, Marshmello
7) God's Plan - Drake
8) Rewrite The Stars - Zac Efron, Zendaya
9) Havana
10) Perfect
The program shows the music in the queue
Camila Cabello, Young Thug
Ed Sheeran
2. Next Music
NEXT IN QUEUE
Oh no.
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.
The queue is empty..
MAIN MENU
1. Add Music Into Queue
2. Next Music
3. Clear Queue
4. Exit
Input your choice: -
O C\Users\AWALON\Downloads\Untitled1.exe
9) Havana
10) Perfect
Camila Cabello, Young Thug
Ed Sheeran
NEXT IN QUEUE
1) Havana
2) Al1 The Stars (with SZA)
3) The Middle - Zedd, Maren Morris, Grey
4) Wolves
5) Havana - Camila Cabelio, Young Thug
6) Best Part - H.E.R., Daniel Caesar
Camila Cabello, Young Thug
Kendrick Lamar, LZA
In the main menu, there are 4 options:
Selena Gomez, Marshmelio
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 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
8) Wolves
Selena Gomez, Marshmello
MAIN MENU
1. Add Music Into Queue
2. Next Music
3. Clear Queue
4. Exit
Input your choice: 2
users.
O CA\Users\AVALON\Downloads\Untitled1.exe
Now Playing: A Havana
Press ANY KEY to STOP playing the music!
Camila Cabello, Young Thug 4
6) Wolves - Selena Gomez, Marshmello
7) God's Plan - Drake
8) Rewrite The Stars - Zac Efron, Zendaya
9) Havana
10) Perfect
Users chose next music and the program play the music from the queue
Camila Cabello, Young Thug
Ed Sheeran
O CAUsers\AVALONDownloads\Untitled1.exe
4) Best Part
5) All The Stars (with SZA)
6? Wolves
God's Plan- Drake
8) Rewrite The Stars - Zac Efron, Zendaya
NEXT IN QUEUE
Oh no.. The queue is empty..
H.E.R., Daniel Caesar
Kendrick Lamar, LZA
Selena GoOmez, Marshmello
MAIN MENU
1. Add Music Into Queue
2. Next Music
3. Clear Queue
4. Exit
Input your choice: 1
Camila Cabello, Young Thug
10) Perfect - Ed Sheeran
NEXT IN QUEUE
"1) All The Stars (with SZA)
Kendrick Lamar, LZA
What music number will be added into the queue [1..10] ? 0
ERROR: The music number must be between 1 and 10!
What music number will be added into the queue [1..10] ? 15
ERROR: The music number must be between 1 and 10!
What music number wil1 be added into the queue [1..10] ? 9
The music "Havana - Camila Cabello, Young Thug" is added to the queue!
2) The Middle - Zedd, Maren Morris, Grey
3) Wolves - Selena Gomez, Marshmello
Camila Cabello, Young Thug
H.E.R., Daniel Caesar
- H.E.R.. Daniel Caesar
Selena Gomez, Marshmello
5) Best Part
6) Best Part
23 Holves
MAIN MENU
1. Add Music Into Queue
2. Next Music
3. Clear Queue
2. Exit
Input your choice:
Transcribed Image Text:DUMarshmello, Anne-Marie 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. A music is added to the queue O CAUsers\AVALON\Downloads\Untitled1.exe SONG LIST 1) IDGAE 2) FRIENDS - 3) The Mi ddle Best Part 5) All The Stars (with SZA) - Kendrick Lamar, LZA 6) Wolves God's Plan - Drake 81 Rewrite The Stars - Zac Efron, Zendaya 9) Havana 10) Perfect 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 3. MAIN MENU : List of song that can be chosen by the users -Zedd, Maren Morris, Grey H.E.R.. Daniel Caesar Show the main menu of the program Selena Gomez, Marshmello NOTE: The SONG LIST can be found in the provided document for this task. Camila Cabello, Young Thug Ed Sheeran NEXT IN QUEUE 1) Havana Camila Cabello, Young Thug O CAUsers\AVALON\Downloads\Untitled1.exe SONG LIST 1) IDGAF - 2) FRIENDS 3) The Middle 4) Best Part - H.E.R., Daniel Caesar 5) All The Stars (with SZA) - Kendrick Lamar, LZA MAIN MENU 1. Add Music Into Queue Next Music 3. Clear Queue 4. Exit Input your choice: - Dua Lipa Marshmello, Anne-Marie Zedd, Maren Morris, Grey Şelena Gomez, Marshmello 7) God's Plan - Drake 8) Rewrite The Stars - Zac Efron, Zendaya 9) Havana 10) Perfect The program shows the music in the queue Camila Cabello, Young Thug Ed Sheeran 2. Next Music NEXT IN QUEUE Oh no. 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. The queue is empty.. MAIN MENU 1. Add Music Into Queue 2. Next Music 3. Clear Queue 4. Exit Input your choice: - O C\Users\AWALON\Downloads\Untitled1.exe 9) Havana 10) Perfect Camila Cabello, Young Thug Ed Sheeran NEXT IN QUEUE 1) Havana 2) Al1 The Stars (with SZA) 3) The Middle - Zedd, Maren Morris, Grey 4) Wolves 5) Havana - Camila Cabelio, Young Thug 6) Best Part - H.E.R., Daniel Caesar Camila Cabello, Young Thug Kendrick Lamar, LZA In the main menu, there are 4 options: Selena Gomez, Marshmelio 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 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 8) Wolves Selena Gomez, Marshmello MAIN MENU 1. Add Music Into Queue 2. Next Music 3. Clear Queue 4. Exit Input your choice: 2 users. O CA\Users\AVALON\Downloads\Untitled1.exe Now Playing: A Havana Press ANY KEY to STOP playing the music! Camila Cabello, Young Thug 4 6) Wolves - Selena Gomez, Marshmello 7) God's Plan - Drake 8) Rewrite The Stars - Zac Efron, Zendaya 9) Havana 10) Perfect Users chose next music and the program play the music from the queue Camila Cabello, Young Thug Ed Sheeran O CAUsers\AVALONDownloads\Untitled1.exe 4) Best Part 5) All The Stars (with SZA) 6? Wolves God's Plan- Drake 8) Rewrite The Stars - Zac Efron, Zendaya NEXT IN QUEUE Oh no.. The queue is empty.. H.E.R., Daniel Caesar Kendrick Lamar, LZA Selena GoOmez, Marshmello MAIN MENU 1. Add Music Into Queue 2. Next Music 3. Clear Queue 4. Exit Input your choice: 1 Camila Cabello, Young Thug 10) Perfect - Ed Sheeran NEXT IN QUEUE "1) All The Stars (with SZA) Kendrick Lamar, LZA What music number will be added into the queue [1..10] ? 0 ERROR: The music number must be between 1 and 10! What music number will be added into the queue [1..10] ? 15 ERROR: The music number must be between 1 and 10! What music number wil1 be added into the queue [1..10] ? 9 The music "Havana - Camila Cabello, Young Thug" is added to the queue! 2) The Middle - Zedd, Maren Morris, Grey 3) Wolves - Selena Gomez, Marshmello Camila Cabello, Young Thug H.E.R., Daniel Caesar - H.E.R.. Daniel Caesar Selena Gomez, Marshmello 5) Best Part 6) Best Part 23 Holves MAIN MENU 1. Add Music Into Queue 2. Next Music 3. Clear Queue 2. Exit Input your choice:
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY