Question: It's a python, not c++ D. (15 points) Roman Calculator Write a function named romanAdd that takes two strings representing roman numbers and returns their

It's a python, not c++
D. (15 points) Roman Calculator Write a function named romanAdd that takes two strings representing roman numbers and returns their sum. (You can refer to Lab 3 for a brief tutorial on Roman numerals). For full credit, return the sum of the two numbers as an int. For 1 point of extra credit write a function named romanAddExtra that takes two strings and return a string with the roman numeral of the sum instead. (You may assume all inputs are valid roman numeral strings that represent numbers less than 400/ CD') For Example: romanAdd ('I',XI' romanAdd ('I', 'IX' romanAddExtra ( ' I ' , ' Ix' ) #returns 12 (Full credit version) #returns 10 (Full Credit version) # returns 'X' (Extra Credit Version) Hint: Again, break the problem into easier sub-problems. At first, ignore cases where you need to look at pairs of symbols, ten try the full
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
