## (c) Write a general-purpose function to convert any given year into its roman equivalent. The following table shows the roman equivalents of decimal numbers: Advertisements

## (b) Write a function power ( a, b ), to calculate the value of a raised to b. ## (a) Write a function to calculate the factorial value of any integer entered through the keyboard. ## the sum of the first and last digit of this number.

(i) If a four-digit number is input through the keyboard, write a program to obtain the sum of the first and last digit of this number. ## reverse the number

(h) If a five-digit number is input through the keyboard, write a program to reverse the number. ## Severed Reading through the Phillips Library catalog is an activity that is simultaneously enticing and frustrating: one can glean the scope of the collections but not access them, provenances are presented but not deeds of gift or deposit (which is standard). Given the missions of its two founding institutions, the Essex Institute and the Peabody Museum, […]

## Sum of its digits

(g) If a five-digit number is input through the keyboard, write a program to calculate the sum of its digits. (Hint: Use the modulus operator ‘%’) 