Question: 8 . 1 . 1 P ( II ) Printing the Genre Names Challenge Submissions Description list _ genres.rb 8 . 1 . 1 P

8.1.1P
(II)
Printing the Genre Names
Challenge
Submissions
Description
list_genres.rb
8.1.1P Printing the Genre Names
Look at the lecture notes for Week 7(you may need to watch the video) and copy in (below) the code for printing the genre names using the array. Just place your code in main().
The output should look as follows:
1 Pop
2 Classic
3 Jazz
4 Rock
1
2 # put the genre names array here: 3
5 def main()
6
8 end
Hoin()
/home/list_genres.rb Spaces: 4(Auto)
Terminal
 8.1.1P (II) Printing the Genre Names Challenge Submissions Description list_genres.rb 8.1.1P

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!