1.Write a function prime that returns 1 if its argument is a prime number and returns zero
otherwise. 2. Write a function that will scan a character string passed as an argument and convert all lowercase characters into their uppercase equivalents.
3. Develop a top_down modular program to implement a calculator. The program should request the user to input two numbers and display one of the following as per the desire of the user:
(a) Sum of the numbers
(b) Difference of the numbers
(c) Product of the numbers
(d) Division of the numbers
Provide separate functions for performing various tasks such as reading, calculating and
displaying. Calculating module should call second level modules to perform the individual
mathematical operations. The main function should have only function calls.