This is the scheme for a circuit for a scientific calculator. I did using LOGISIM. Please follow the instructions carefully if you want to see how it works.