Write a general-purpose function to convert any given year into its Roman equivalent. Use these Roman equivalents for decimal numbers:…