Multifunctional calculator using Switch statements