Exercise 11: struct practice

Description

InstructionsCreate a struct named Song with these member variables: string title, string artist, int downloads.Declare a global variable of type Song. Name your variable my_song.In your main() function, initialize the member variables of my_song.Initialize the string members with your favorite song title and the artist.Initialize the downloads member with a random number between 0 and 1000.Write a function named download_song() that accepts one reference parameter of type Song.Your function download_song() shouldadd one to my_song’s member variable downloads,display the value of all my_song’s member variables, with the updated download count.Call function download_song(my_song) from main().

Don't use plagiarized sources. Get Your Custom Assignment on
Exercise 11: struct practice
From as Little as $13/Page