/**
 * This function takes in the number of days worked by a social worker and the total days required, and returns a string indicating their progress.
 *
 * @param daysWorked The number of days worked by the social worker.
 * @param totalDays The total number of days required.
 * @return A string indicating the progress of the social worker.
 */
fun checkProgress(daysWorked: Int, totalDays: Int): String {

    // Check if the social worker has completed 100% of their required days
    if (daysWorked == totalDays) {
        return "Congrats! You have completed all the required days."
    }

    // Check if the social worker has completed less than 50% of their required days
    else if (daysWorked < totalDays * 0.5) {
        return "You are behind schedule. Keep working hard!"
    }

    // Check if the social worker has completed more than 50% but less than 100% of their required days
    else if (daysWorked < totalDays) {
        return "You are making progress. Keep going!"
    }

    // Check if the social worker has completed more than 100% of their required days
    else {
        return "You have exceeded the required"
    }
}
/**
 * This function takes in the number of days worked by a social worker and the total days required, and returns a string indicating their progress.
 *
 * @param daysWorked The number of days worked by the social worker.
 * @param totalDays The total number of days required.
 * @return A string indicating the progress of the social worker.
 */
fun checkProgress(daysWorked: Int, totalDays: Int): String {
/**
 * This function takes in the number of days worked by a social worker and the total days required, and returns a string indicating their progress.
 *
 * @param daysWorked The number of days worked by the social worker.
 * @param totalDays The total number of days required.
 * @return A string indicating the progress of the social worker.
 */
fun checkProgress(daysWorked: Int, totalDays: Int): String {

    // Check if the social worker has completed 100% of their required days
    if (daysWorked == totalDays) {
        return "Congrats! You have completed all the required days."
    }

    // Check if the social worker has completed less than 50% of their required days
    else if (daysWorked < totalDays * 0.5) {
        return "You are behind schedule. Keep working hard!"
    }

    // Check if the social worker has completed more than 50% but less than 100% of their required days
    else if (daysWorked < totalDays) {
        return "You are making progress. Keep going!"
    }

    // Check if the social worker has completed more than 100% of their required days
    else {
        return "You have exceeded the required"
    }
}