/**
 * This function calculates the number of wires required to cover a specific length of electrical circuit.
 *
 * @param wireLength The total length of the circuit in meters.
 * @param wireCapacity The maximum length of wire that can be accommodated without causing electrical issues.
 * @return The number of wires required to cover the entire circuit.
 */
fun calculateWireLength(wireLength: Double, wireCapacity: Double): Int {

    var wireCount = 0

    // While loop to check if the wire length is still greater than zero
    var remainingWireLength = wireLength
    while (remainingWireLength > 0) {
        // Slice the wire length based on the wire capacity
        if (remainingWireLength >= wireCapacity) {
            remainingWireLength -= wireCapacity
            wireCount++
        } else {
            remainingWireLength = 0.0
        }
    }

    return wireCount
}
/**
 * This function calculates the number of wires required to cover a specific length of electrical circuit.
 *
 * @param wireLength The total length of the circuit in meters.
 * @param wireCapacity The maximum length of wire that can be accommodated without causing electrical issues.
 * @return The number of wires required to cover the entire circuit.
 */
fun calculateWireLength(wireLength: Double, wireCapacity: Double): Int {
/**
 * This function calculates the number of wires required to cover a specific length of electrical circuit.
 *
 * @param wireLength The total length of the circuit in meters.
 * @param wireCapacity The maximum length of wire that can be accommodated without causing electrical issues.
 * @return The number of wires required to cover the entire circuit.
 */
fun calculateWireLength(wireLength: Double, wireCapacity: Double): Int {

    var wireCount = 0

    // While loop to check if the wire length is still greater than zero
    var remainingWireLength = wireLength
    while (remainingWireLength > 0) {
        // Slice the wire length based on the wire capacity
        if (remainingWireLength >= wireCapacity) {
            remainingWireLength -= wireCapacity
            wireCount++
        } else {
            remainingWireLength = 0.0
        }
    }

    return wireCount
}