Rework Project 38 to convert a decimal number
[ad_1]
Rework Project 38 to convert a decimal number to a Roman numeral.
Project 38
Scan the string containing the Roman character from left to right. If the character is not one of the symbols in the numeral symbol set, the program must print an error message and terminate. Otherwise, continue with the following steps. ( Note that there is no equivalent to zero in the Roman numerals.)
If the next character is a null character (if the current character is the last character), add the value of the current character to the decimal value.
II the value of the current character is greater than or equal to the value of the next character, add the value of the current character to the decimal value.
II the value of the current character is less than the next character, subtract the value ol the current character from the decimal value
Solve this project using parallel arrays. Do not solve it using a switch statement.
[Button id=”1″]
[ad_2]
Source link
"96% of our customers have reported a 90% and above score. You might want to place an order with us."
