/**
 * Calculate the current using Ohm's Law.
 *
 * @param voltage The voltage applied.
 * @param resistance The resistance in the circuit.
 * @return The calculated current.
 */
fun calculateCurrent(voltage: Double, resistance: Double): Double {

    // Use Ohm's Law formula to calculate the current
    val current = voltage / resistance
    return current
}
/**
 * Calculate the current using Ohm's Law.
 *
 * @param voltage The voltage applied.
 * @param resistance The resistance in the circuit.
 * @return The calculated current.
 */
fun calculateCurrent(voltage: Double, resistance: Double): Double {
/**
 * Calculate the current using Ohm's Law.
 *
 * @param voltage The voltage applied.
 * @param resistance The resistance in the circuit.
 * @return The calculated current.
 */
fun calculateCurrent(voltage: Double, resistance: Double): Double {

    // Use Ohm's Law formula to calculate the current
    val current = voltage / resistance
    return current
}