How to write a program ,in C,which inputs two numbers specified in Roman numerals and outputs the sum of these two numbers in Roman numerals,no matter with capitals or not?

im interested in Using arrays to store the input numbers (character sequences) and utilizing functions to do error checking and array-processing

example

input:CCCXi+CxXViIi

output:CDXXXIX

input: DCCXiv+DccciV

output:MDXVIII

input:MLxvII+Mmiii

output:MMMLXX

Code:• I =1 i =1 • V = 5 v =5 • X = 10 x =10 • L = 50 l =50 • C = 100 c = 100 • D = 500 d = 500 • M = 1000 m = 1000