How would you modify the program you wrote for Exercise 2 to handle functions such as sine, as in 3.

How would you modify the program you wrote for Exercise 2 to
handle functions such as sine, as in 3  sine (45)?

Exercise 2

Write a program that parses and evaluates arithmetic
expressions that contain real numbers and the operators +, –, *, and /.