/**
 * This function calculates the resistance of an electrical component
 * given the voltage across the component and the current passing through it.
 *
 * @param voltage The voltage across the electrical component in volts.
 * @param current The current passing through the electrical component in amperes.
 * @return The resistance of the electrical component in ohms.
 */
fun calculateResistance(voltage: Double, current: Double): Double {

    val resistance = voltage / current
    return resistance
}
/**
 * This function calculates the resistance of an electrical component
 * given the voltage across the component and the current passing through it.
 *
 * @param voltage The voltage across the electrical component in volts.
 * @param current The current passing through the electrical component in amperes.
 * @return The resistance of the electrical component in ohms.
 */
fun calculateResistance(voltage: Double, current: Double): Double {
/**
 * This function calculates the resistance of an electrical component
 * given the voltage across the component and the current passing through it.
 *
 * @param voltage The voltage across the electrical component in volts.
 * @param current The current passing through the electrical component in amperes.
 * @return The resistance of the electrical component in ohms.
 */
fun calculateResistance(voltage: Double, current: Double): Double {

    val resistance = voltage / current
    return resistance
}