Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I NEED A CODE WHICH ADHERE TO ALL THE CONDITIONS GIVEN BELOW I DID A CODE BY MYSELF BUT THE OUTPUT IS NOT COMING SAME
I NEED A CODE WHICH ADHERE TO ALL THE CONDITIONS GIVEN BELOW I DID A CODE BY MYSELF BUT THE OUTPUT IS NOT COMING SAME AS THE MENU OPTIONS GIVEN BELOW AND THEY SHOULD EXTACTLY MATCH THEN ONLY THE TUTOR WILL MARK IT CORRECT. PLEASE READ ALL OF THE BELOW CONDITIONS AND IF ITS DISPLAYING ALL THE NECESSARY OUTPUT REQUIRED. RUBY LANGUAGE
You must use while loops for this task - do not use for loops or other loops. Display a menu that offers the user the following options: 1. Read in Albums 2. Display Albums 3. Select an Album to play 5. Exit the application Menu option 1 should prompt the user to enter a filename of a file that contains the following information: The number of albums The first artist name The first album name The release date of the album The genre of the album The number of tracks The name and file location (path) of each track. The album information for the remaining albums.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
class Album attraccessor artist albumname releasedate genre numtracks tracks def initializeartist al...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started