/**
 * Calculate the power consumed by an electrical appliance using the formula P = E / t.
 *
 * @param energyConsumed The energy consumed by the appliance in watt-hours.
 * @param time The time taken to consume the energy in hours.
 * @return The power consumed by the electrical appliance in watts.
 */
fun calculatePower(energyConsumed: Float, time: Float): Float {

    val power = energyConsumed / time
    return power
}
/**
 * Calculate the power consumed by an electrical appliance using the formula P = E / t.
 *
 * @param energyConsumed The energy consumed by the appliance in watt-hours.
 * @param time The time taken to consume the energy in hours.
 * @return The power consumed by the electrical appliance in watts.
 */
fun calculatePower(energyConsumed: Float, time: Float): Float {
/**
 * Calculate the power consumed by an electrical appliance using the formula P = E / t.
 *
 * @param energyConsumed The energy consumed by the appliance in watt-hours.
 * @param time The time taken to consume the energy in hours.
 * @return The power consumed by the electrical appliance in watts.
 */
fun calculatePower(energyConsumed: Float, time: Float): Float {

    val power = energyConsumed / time
    return power
}