Write a function that converts a decimal input into roman


Write a function that converts a decimal input into Roman Numerals. Your function will take in a number and output a string. You will want to make use of the function string-append, which concatenates two (or more) strings together into a single string with no spaces.
(string-append "ab" "cde") => "abcde"

In Roman Numerals, M = 1000, D = 500, C = 100, L = 50, X = 10, V = 5, and I = 1. Combinations of letters next to each other change the total value depending on order. For example, XL = 40, VIII = 8, and MCCXLI = 1241. 

(1a) Write a recursive version of this function. 

(1b) Write an iterative version of this function.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a function that converts a decimal input into roman
Reference No:- TGS0119585

Expected delivery within 24 Hours