3. Write a lex program that will function as a calculator and perform the operations like addition, subtraction, multiplication, division, modulo and power.