For this lab you will implement a simple calculator. I will provide you with a 20 button keypad. You will need to connect this to the Z8 and scan the keys to determine which button has been pressed. You will then implement a simple calculator (+, -, /, *, C (clear), STO (store) and RCL (recall)). Your calculator will work with floating point numbers so you will need to figure out how to put a decimal point on the digits display. To display numbers that are larger than 4 digits you will need to scroll the number across the display as you enter it and when you display it. STO/RCL should implement a simple one number memory.
Answer these questions: