Question: can you please do this in java, thanks Students: Section 8.8 is a part of 1 assignment Assignment 2 Requirements: zyLab Entire class due: 02/08/2021,









Students: Section 8.8 is a part of 1 assignment Assignment 2 Requirements: zyLab Entire class due: 02/08/2021, 11:59 PM 8.8 LAB*: Program: Playlist You will be building a linked list. Make sure to keep track or both the head and tai nodes. (1) Create two files to submit Song Entryjave -Class declaration Playlist java. Contains main() method Build the SongEntry class per the following specifications. Note: Some methods can initially be method stubs (empty methods), to be completed in later steps Private fields String uniquel-Initialized to 'none' in default constructor string songName-Initialized to 'none' in default constructor string artistName Initialized to 'none' in default constructor int songLength - Initialized to in default constructor Song Entry nextNode. Initialized to null in default constructor Default constructor (pt) Parameterized constructor (1) Public member methods distada w 3 UUTICO o void insertAfter(Song Entry currNode) (1 pt) void setNext(Song Entry nextNode) - Mutator (1 pt) String getID(). Accessor String getSongName() - Accessor String getArtistName() - Accessor int getSongLength - Accessor Song Entry getNext() - Accessor void printPlaylistSongs() Ex of printPlaylistSongs output Unique ID: $123 Song Name Peg Artist Name: Steely Dan song Length (in seconds): 237 (2) In main, prompt the user for the title of the playlist. (1 pt) EX Enter playlista title: JAK (3) Implement the printMenu() method printMenu() takes the playlist title as a parameter and a Scanner object outputs a menu of options to manipulate the playlist, and reads the user menu selection Ench option is represented by a single character Build and output the menu within the method it an invalid character is entered, continue to prompt for a valid choice Hint, implement Quit before implementing other options. Cal printMenu() in the main method. Continue to execute the menu until the user enters to Quit (3 pts) PA EX JAME PLAYLIST MENO a - Add song d - Remove song C - Change position of song S- Output songs by specific artist t - Output total time of playlist in seconds) - output full playlist 9 - Quit Choose an options (4) Implement "Output full playlist" menu option. If the list emripty, oliput Playlist is empty (3 pts) Ex TAM- OUTPUT FULL PLAYLIST Unique ID: SD123 Song Name: Peg Artist Namet Steely Dan Song Longth in second) 1237 Unique ID J3234 Song Namet All For You Artist Nimet Janet Jackson 6 W yBooks My library > CSC 2017 Computer Science I hame> 8,8 LAB* Program Playlist zyBooks catalog 2. Unique ID: JJ234 Song Name: All For You Artist Name: Janet Jackson Song Length (in seconds): 391 3. Unique ID: J345 Song Name: Canned Heat Artist Name: Jamiroqun Song Length (in seconds): 330 Unique ID: J3456 Song Name: Black Eagle Artist Name: Janet Jackson Song Length in seconds): 197 5. Unique ID: SD567 Song Name: I Got The News Artist Name: Steely Dan Song Length in seconds) : 306 Ex (empty playlist) JAM- OUTPUT FULL PLAYLIST Playlist 18 empty ES tv A Edit View History Bookmarts Windows leambooks.com LAL xylooks catalog My library > CSC 201 Computer Science home 88.LAB Programu Playist (5 implement the Add song imenu item ditions are added to the end of the list (2 pts) E Ano mong Enter songs to: 5012 intornina's name: ng Entista : Steely Dan Inter wong length in condo) 2:37 (6) Implement the "Remove song' method Prompt the user for the urloue ID of the song to be removed (4 pts) Ex REMOVE er unique 3+ "All For You" enoted. umplement the Change position of song menu option Promot the user for the current position of the song and the desred new position valid new positions are in the number of codes) if the user enters a new position that in less than 1 move the mode to the position the head of the user enters a new position greater than move the node to position (thetty 6 cases will be tested Moving the head node (pt Moving the tal node w Kiersten Mute X End 34 Camera Off Live Photo $ 4 2 % 5 & 7 6 8 9 0 rary> CSC 201: Computer Science i home > 8.8: LAB : Program Playlist zyBooks catalog Help/ Moving the head node (1 pt) Moving the tail node (1 pt) Moving a node to the head (1 pt) Moving a node to the tail (1 pt) Moving a node up the list (1 pt) Moving a node down the list (1 pt) . EX CHANGE POSITION OF SONG Enter song's current position: 3 Enter new position for song: 2 "Canned Heat" moved to position 2 (8) Implement the output songs by specific artist" menu option Prompt the user for the artists name and output the nodo's information, starting with the node's current position (2 pt) Ex: OUTPUT SONGS BY SPECIFIC ARTIST Enter artist's name Janet Jackson 2 Unique ID: JU234 Song Name: All For You Artist Name: Janet Jackson 6 otv W . y library> CSC 201: Computer Science i home > 8.8. LAB* Program: Playlist EzyBooks catalog Help/FAQ Unique ID: JJ234 Song Name: All For You Artist Name: Janet Jackson Song Length (in seconds): 391 Unique ID: 13456 Song Name: Black Eagle Artist Name: Janet Jackson Song Length in seconda): 197 (9) Implement the "Output total time of playlist" menu option Outputyhe sum of the time of the playlist's songs in seconds) (2 pts) EX OUTPUT TOTAL TIME OF PLAYLIST IN SECONDS Total time 1461 seconds LAR ACTIVITY 8.8.1: LAB" Program: Playlist 0727 Current file. Playlistjava - Load defaulterte 1 1 Type code here dtv A 6 oks My library > CSC 201 Computer Science l home > 8 8 LAB* Program: Playlist zyBooks catalog Help/FAQ E EX OUTPUT TOTAL TIME OF PLAYLIST IN SECONDS) Total time: 1461-econds ACTIVITY 0727 881 LABE Program Playlist Current le Playlist java- Led default om 1 Type code I Develop mode Submit mode Run your program as often as you'd like, before submitting for grading Below type any needed input values in the first box, then click Run program and observe the program's output in the second box A Haton Bola Hele anytecks.com MytryCS0209 Computer Science bome 8.8. LAB Prosport: Playa zools catalog Hel/FAO ACTIVITY LA Program Playlist 0727 Current Song Entryjava - 11 code bere Developmode Submit mode Run your programat often as you'd before wutmitting for grading Bow type any needed values in the first think Run program and observe the regrette rond box Enter program input (optional) 6 Kiersten Mute X End 13 Camera on S 2 3 4 6 7 8 9 0 W E R T U y > CSC 201: Computer Science I home > 8.8: LAB: Program: Playlist zyBooks catalog ? Total time: 1461 seconds 29557413RD UAB ACTIVITY 8.8.1: LAB: Program: Playlist 0/27 Current file Playlist.java Load default template 1 Type code here. 1 Develop mode Run your program as often as you'd like before submitting for grading. Below, type any needed Submit mode Input values in the first box, then click Run program and observe the program's output in the second box Enter program input (optional) if your code requires input values, provide them here 6 otv A W
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
