/**
 * Calculate the payment for a physician based on their name, hours worked, and hourly rate.
 *
 * @param doctorName The name of the physician.
 * @param hoursWorked The number of hours the physician worked.
 * @param hourlyRate The hourly rate of the physician.
 * @return A formatted string with the payment details.
 */
fun calculatePayment(doctorName: String, hoursWorked: Int, hourlyRate: Double): Pair<String, String> {

    // Calculate the payment
    val payment = hoursWorked * hourlyRate

    // Format the payment details
    val paymentDetails = "$doctorName worked $hoursWorked hours at a rate of $%.2f per hour. The payment is $%.2f.".format(hourlyRate, payment)

    // Compare two payment details using identity comparison
    val paymentComparison = "The payment details are ${if (paymentDetails === paymentDetails) "the same" else "different"}."

    return Pair(paymentDetails, paymentComparison)
}
/**
 * Calculate the payment for a physician based on their name, hours worked, and hourly rate.
 *
 * @param doctorName The name of the physician.
 * @param hoursWorked The number of hours the physician worked.
 * @param hourlyRate The hourly rate of the physician.
 * @return A formatted string with the payment details.
 */
fun calculatePayment(doctorName: String, hoursWorked: Int, hourlyRate: Double): Pair<String, String> {
/**
 * Calculate the payment for a physician based on their name, hours worked, and hourly rate.
 *
 * @param doctorName The name of the physician.
 * @param hoursWorked The number of hours the physician worked.
 * @param hourlyRate The hourly rate of the physician.
 * @return A formatted string with the payment details.
 */
fun calculatePayment(doctorName: String, hoursWorked: Int, hourlyRate: Double): Pair<String, String> {

    // Calculate the payment
    val payment = hoursWorked * hourlyRate

    // Format the payment details
    val paymentDetails = "$doctorName worked $hoursWorked hours at a rate of $%.2f per hour. The payment is $%.2f.".format(hourlyRate, payment)

    // Compare two payment details using identity comparison
    val paymentComparison = "The payment details are ${if (paymentDetails === paymentDetails) "the same" else "different"}."

    return Pair(paymentDetails, paymentComparison)
}