❔ inheritance??
Is this an inheritance problem statement? Im not sure how to implement it...
You are tasked with designing a database for an online radio station. The database should keep track of songs, their artists, their length in seconds, and the number of times they have been played. It should also keep track of the names of the radio stations that the songs have been played on.
Your program should be able to perform the following operations:
Add a song to the database. A song should have a title, an artist, a length in seconds, and the number of times it has been played.
Add a radio station to the database. A radio station should have a name.
Add a playlist to the database. A playlist should have a name and a list of songs.
Add a song to a playlist.
Print the total length of a playlist in a human-readable format (hours, minutes, seconds).
Print the total number of times that a song has been played.
Print a list of all songs that have been played on a given radio station.
Print a list of all songs that have been played on multiple radio stations.
Print a list of all artists that have had songs played on a given radio station.
Print a list of all songs that are longer than a given length in seconds.
The program should be written in C# using object-oriented programming principles, with appropriate classes and inheritance relationships. The code should be well-structured, readable, and maintainable.
1 Reply
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.