Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE ANSWER THIS IN C LANGUAGE this should be the output for the list of artists/group names and songs provided at step 2. Sorted list

PLEASE ANSWER THIS IN C LANGUAGE

this should be the output for the list of artists/group names and songs provided at step 2. Sorted list of songs: Lorde - Green Light - Tennis Court - The Louvre Taylor Swift - Anti-Hero - Bad Blood - Shake it Off The Cranberries - In the End - Salvation - Zombie U2 - Beautiful Day - One - With or Without you 3) Create a random playlist of the songs given as input ensuring that the same song can only appear again after at list 5 different other songs have played. The same song must appear twice. For example, this is a possible output for the list of artists/group names and songs provided at step 2. Shuffled Playlist: Lorde - Green Light The Cranberries - Zombie The Cranberries - In the End Taylor Swift - Bad Blood Taylor Swift - Shake it Off U2 - One Lorde - Green Light U2 - With or Without you The Cranberries - Salvation Taylor Swift - Anti-Hero U2 - Beautiful Day Taylor Swift - Bad Blood The Cranberries - In the End Taylor Swift - Shake it Off U2 - One Lorde Tennis Court The Cranberries Salvation Lorde - The Louvre The Cranberries - Zombie Taylor Swift - Anti-Hero U2 - Beautiful Day Lorde Tennis Court U2 - With or Without you Lorde - The Louvre I did everything for the sorting using a 3D string array and was hoping to look for help for the shuffling using fischer yates algorithm/function using 3D string array as well. And printing it out shuffled with one condition where the same song should and only repeat after 5 other songs. Please do this in C language.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions