/**
 * A carpenter needs to calculate the length of each cut required for a project.
 * The total length, overlap value, and the number of pieces are given as inputs.
 * The carpenter wants to find out the length of each individual cut.
 */
fun calculateCutLength(length: Float, overlap: Float, pieceCount: Int): Float {

    // Calculate the total overlap length
    val totalOverlap = overlap * (pieceCount - 1)

    // Calculate the length of each individual cut
    val cutLength = (length - totalOverlap) / pieceCount

    return cutLength
}
/**
 * A carpenter needs to calculate the length of each cut required for a project.
 * The total length, overlap value, and the number of pieces are given as inputs.
 * The carpenter wants to find out the length of each individual cut.
 */
fun calculateCutLength(length: Float, overlap: Float, pieceCount: Int): Float {
/**
 * A carpenter needs to calculate the length of each cut required for a project.
 * The total length, overlap value, and the number of pieces are given as inputs.
 * The carpenter wants to find out the length of each individual cut.
 */
fun calculateCutLength(length: Float, overlap: Float, pieceCount: Int): Float {

    // Calculate the total overlap length
    val totalOverlap = overlap * (pieceCount - 1)

    // Calculate the length of each individual cut
    val cutLength = (length - totalOverlap) / pieceCount

    return cutLength
}