Design and create a calculator using panels of FlowLayout, GridLayout and BorderLayout. The calculator should be able to implement the following functions: addition (+), subtraction (-), division (/), square root (sort) and modulus (%). When a function is activated the calculator should display the equation and then its results.