Using computer simulations to varify ohms law calculations