/**
 * This function calculates the average rating of a musician's albums
 * based on the total ratings and number of albums released.
 *
 * @param totalRatings The total number of ratings received for all albums.
 * @param numOfAlbums The total number of albums released by the musician.
 * @return The average rating of the musician's albums.
 */
fun calculateAverageRating(totalRatings: Int, numOfAlbums: Int): String {

    // Calculate the average rating
    val averageRating = totalRatings.toDouble() / numOfAlbums

    // Check if the average rating is above a certain threshold
    val result = when {
        averageRating >= 7.5 -> "The musician is highly acclaimed!"
        averageRating >= 5.0 -> "The musician has received mixed reviews."
        else -> "The musician is not very popular."
    }

    return result
}
/**
 * This function calculates the average rating of a musician's albums
 * based on the total ratings and number of albums released.
 *
 * @param totalRatings The total number of ratings received for all albums.
 * @param numOfAlbums The total number of albums released by the musician.
 * @return The average rating of the musician's albums.
 */
fun calculateAverageRating(totalRatings: Int, numOfAlbums: Int): String {
/**
 * This function calculates the average rating of a musician's albums
 * based on the total ratings and number of albums released.
 *
 * @param totalRatings The total number of ratings received for all albums.
 * @param numOfAlbums The total number of albums released by the musician.
 * @return The average rating of the musician's albums.
 */
fun calculateAverageRating(totalRatings: Int, numOfAlbums: Int): String {

    // Calculate the average rating
    val averageRating = totalRatings.toDouble() / numOfAlbums

    // Check if the average rating is above a certain threshold
    val result = when {
        averageRating >= 7.5 -> "The musician is highly acclaimed!"
        averageRating >= 5.0 -> "The musician has received mixed reviews."
        else -> "The musician is not very popular."
    }

    return result
}