Write a program to input sum, rate, time and type of Interest ('S' for Simple
Interest and 'C' for Compound Interest). Calculate and display the sum and the
interest earned.
The Simple Interest (SI) and Compound Interest (CI) of a sum (P) for a given
time (T) and rate (R) can be calculated as:
(a) SI = (p * r * t) / 100
(b) CI = P * ((1 + (R / 100))T - 1)
Please Add in comments where required and variable description at the end of the program
Note: Display the menu. Accept the user’s choice and use SWITCH CASE