/**
 * Calculate the total earnings of an actor/actress based on their earnings per movie
 * and the number of movies they have worked on.
 *
 * @param earningsPerMovie The amount of money earned per movie.
 * @param numberOfMovies The total number of movies the actor/actress has worked on.
 * @return The total earnings of the actor/actress.
 */
fun calculateTotalEarnings(earningsPerMovie: Double, numberOfMovies: Int): Double {

    var totalEarnings = 0.0
    var movieCount = 0

    while (movieCount < numberOfMovies) {
        totalEarnings += earningsPerMovie
        movieCount++
    }

    return totalEarnings
}
/**
 * Calculate the total earnings of an actor/actress based on their earnings per movie
 * and the number of movies they have worked on.
 *
 * @param earningsPerMovie The amount of money earned per movie.
 * @param numberOfMovies The total number of movies the actor/actress has worked on.
 * @return The total earnings of the actor/actress.
 */
fun calculateTotalEarnings(earningsPerMovie: Double, numberOfMovies: Int): Double {
/**
 * Calculate the total earnings of an actor/actress based on their earnings per movie
 * and the number of movies they have worked on.
 *
 * @param earningsPerMovie The amount of money earned per movie.
 * @param numberOfMovies The total number of movies the actor/actress has worked on.
 * @return The total earnings of the actor/actress.
 */
fun calculateTotalEarnings(earningsPerMovie: Double, numberOfMovies: Int): Double {

    var totalEarnings = 0.0
    var movieCount = 0

    while (movieCount < numberOfMovies) {
        totalEarnings += earningsPerMovie
        movieCount++
    }

    return totalEarnings
}