Instructions: Kindly create a C language program and refer for the expected program output below: (I won't like your solution if there is any error, not properly debugged.) Successfully loaded data! ======= MENU ======= [1] Add Playlist [2] Add Song to Playlist [3] Remove Song from Playlist [4] View a Playlist [5] View All Data [6] Exit Enter choice: 3 There are no playlists yet! ----------------------------- ======= MENU ======= [1] Add Playlist [2] Add Song to Playlist [3] Remove Song from Playlist [4] View a Playlist [5] View All Data [6] Exit Enter choice: 1 Enter playlist name: Taylor <3 Successfully added playlist! ----------------------------- ======= MENU ======= [1] Add Playlist [2] Add Song to Playlist [3] Remove Song from Playlist [4] View a Playlist [5] View All Data [6] Exit Enter choice: 1 Enter playlist name: Favorites <3 Successfully added playlist! ----------------------------- ======= MENU ======= [1] Add Playlist [2] Add Song to Playlist [3] Remove Song from Playlist [4] View a Playlist [5] View All Data [6] Exit Enter choice: 1 Enter playlist name: Taylor <3 Playlist name already exists! ----------------------------- ======= MENU ======= [1] Add Playlist [2] Add Song to Playlist [3] Remove Song from Playlist [4] View a Playlist [5] View All Data [6] Exit Enter choice: 5 PLAYLIST: Taylor <3 SONG COUNT: 0 PLAYLIST: Favorites <3 SONG COUNT: 0 ----------------------------- ======= MENU ======= [1] Add Playlist [2] Add Song to Playlist [3] Remove Song from Playlist [4] View a Playlist [5] View All Data [6] Exit Enter choice: 2 THE PLAYLIST AVAILABLE ARE: [0] Taylor <3 [1] Favorites <3 Enter playlist number: 3 Invalid playlist! ----------------------------- ======= MENU ======= [1] Add Playlist [2] Add Song to Playlist [3] Remove Song from Playlist [4] View a Playlist [5] View All Data [6] Exit Enter choice: 2 THE PLAYLIST AVAILABLE ARE: [0] Taylor <3 [1] Favorites <3 Enter playlist number: 0 Enter song title: Sparks Fly Enter song artist: Taylor Swift Enter song album: Speak Now Successfully added song to playlist! ----------------------------- ======= MENU ======= [1] Add Playlist [2] Add Song to Playlist [3] Remove Song from Playlist [4] View a Playlist [5] View All Data [6] Exit Enter choice: 2 THE PLAYLIST AVAILABLE ARE: [0] Taylor <3 [1] Favorites <3 Enter playlist number: 0 Enter song title: Invisible String Enter song artist: Taylor Swift Enter song album: folklore Successfully added song to playlist! ----------------------------- ======= MENU ======= [1] Add Playlist [2] Add Song to Playlist [3] Remove Song from Playlist [4] View a Playlist [5] View All Data [6] Exit Enter choice: 5 PLAYLIST: Taylor <3 SONG COUNT: 2 SONG TITLE: Sparks Fly SONG ARTIST: Taylor Swift SONG ALBUM: Speak Now SONG TITLE: Invisible String SONG ARTIST: Taylor Swift SONG ALBUM: folklore PLAYLIST: Favorites <3 SONG COUNT: 0 ----------------------------- ======= MENU ======= [1] Add Playlist [2] Add Song to Playlist [3] Remove Song from Playlist [4] View a Playlist [5] View All Data [6] Exit Enter choice: 4 THE PLAYLIST AVAILABLE ARE: [0] Taylor <3 [1] Favorites <3 Enter playlist number: 0 PLAYLIST: Taylor <3 SONG COUNT: 2 SONG TITLE: Sparks Fly SONG ARTIST: Taylor Swift SONG ALBUM: Speak Now SONG TITLE: Invisible String SONG ARTIST: Taylor Swift SONG ALBUM: folklore ----------------------------- ======= MENU ======= [1] Add Playlist [2] Add Song to Playlist [3] Remove Song from Playlist [4] View a Playlist [5] View All Data [6] Exit Enter choice: 3 THE PLAYLIST AVAILABLE ARE: [0] Taylor <3 [1] Favorites <3 Enter playlist number: 1 Playlist is still empty! ----------------------------- ======= MENU ======= [1] Add Playlist [2] Add Song to Playlist [3] Remove Song from Playlist [4] View a Playlist [5] View All Data [6] Exit Enter choice: 3 THE PLAYLIST AVAILABLE ARE: [0] Taylor <3 [1] Favorites <3 Enter playlist number: 0 THE SONG AVAILABLE ARE: [0] Sparks Fly by Taylor Swift [1] Invisible String by Taylor Swift Enter song number to delete: 3 Invalid song number! ----------------------------- ======= MENU ======= [1] Add Playlist [2] Add Song to Playlist [3] Remove Song from Playlist [4] View a Playlist [5] View All Data [6] Exit Enter choice: 3 THE PLAYLIST AVAILABLE ARE: [0] Taylor <3 [1] Favorites <3 Enter playlist number: 0 THE SONG AVAILABLE ARE: [0] Sparks Fly by Taylor Swift [1] Invisible String by taylor Swift Enter song number to delete: 0 Successfully deleted song! ----------------------------- ======= MENU ======= [1] Add Playlist [2] Add Song to Playlist [3] Remove Song from Playlist [4] View a Playlist [5] View All Data [6] Exit Enter choice: 3 THE PLAYLIST AVAILABLE ARE: [0] Taylor <3 [1] Favorites <3 Enter playlist number: 0 THE SONG AVAILABLE ARE: [0] Invisible String by taylor Swift Enter song number to delete: 0 Successfully deleted song! ----------------------------- ======= MENU ======= [1] Add Playlist [2] Add Song to Playlist [3] Remove Song from Playlist [4] View a Playlist [5] View All Data [6] Exit Enter choice: 5 PLAYLIST: Taylor <3 SONG COUNT: 0 PLAYLIST: Favorites <3 SONG COUNT: 0
Operations
In mathematics and computer science, an operation is an event that is carried out to satisfy a given task. Basic operations of a computer system are input, processing, output, storage, and control.
Basic Operators
An operator is a symbol that indicates an operation to be performed. We are familiar with operators in mathematics; operators used in computer programming are—in many ways—similar to mathematical operators.
Division Operator
We all learnt about division—and the division operator—in school. You probably know of both these symbols as representing division:
Modulus Operator
Modulus can be represented either as (mod or modulo) in computing operation. Modulus comes under arithmetic operations. Any number or variable which produces absolute value is modulus functionality. Magnitude of any function is totally changed by modulo operator as it changes even negative value to positive.
Operators
In the realm of programming, operators refer to the symbols that perform some function. They are tasked with instructing the compiler on the type of action that needs to be performed on the values passed as operands. Operators can be used in mathematical formulas and equations. In programming languages like Python, C, and Java, a variety of operators are defined.
Instructions: Kindly create a C language program and refer for the expected program output below: (I won't like your solution if there is any error, not properly debugged.)
Successfully loaded data!
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 3
There are no playlists yet!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 1
Enter playlist name: Taylor <3
Successfully added playlist!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 1
Enter playlist name: Favorites <3
Successfully added playlist!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 1
Enter playlist name: Taylor <3
Playlist name already exists!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 5
PLAYLIST: Taylor <3
SONG COUNT: 0
PLAYLIST: Favorites <3
SONG COUNT: 0
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 2
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 3
Invalid playlist!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 2
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 0
Enter song title: Sparks Fly
Enter song artist: Taylor Swift
Enter song album: Speak Now
Successfully added song to playlist!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 2
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 0
Enter song title: Invisible String
Enter song artist: Taylor Swift
Enter song album: folklore
Successfully added song to playlist!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 5
PLAYLIST: Taylor <3
SONG COUNT: 2
SONG TITLE: Sparks Fly
SONG ARTIST: Taylor Swift
SONG ALBUM: Speak Now
SONG TITLE: Invisible String
SONG ARTIST: Taylor Swift
SONG ALBUM: folklore
PLAYLIST: Favorites <3
SONG COUNT: 0
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 4
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 0
PLAYLIST: Taylor <3
SONG COUNT: 2
SONG TITLE: Sparks Fly
SONG ARTIST: Taylor Swift
SONG ALBUM: Speak Now
SONG TITLE: Invisible String
SONG ARTIST: Taylor Swift
SONG ALBUM: folklore
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 3
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 1
Playlist is still empty!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 3
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 0
THE SONG AVAILABLE ARE:
[0] Sparks Fly by Taylor Swift
[1] Invisible String by Taylor Swift
Enter song number to delete: 3
Invalid song number!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 3
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 0
THE SONG AVAILABLE ARE:
[0] Sparks Fly by Taylor Swift
[1] Invisible String by taylor Swift
Enter song number to delete: 0
Successfully deleted song!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 3
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 0
THE SONG AVAILABLE ARE:
[0] Invisible String by taylor Swift
Enter song number to delete: 0
Successfully deleted song!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 5
PLAYLIST: Taylor <3
SONG COUNT: 0
PLAYLIST: Favorites <3
SONG COUNT: 0
-----------------------------


Step by step
Solved in 2 steps









