There was a 1950s/60s juvenile sci-fi story about a teenager who programmed his dad's lab computer to do his math homework. When the adults caught on to what he was doing, they decided it wasn't cheating because he had to learn the math first in order to write the program.