Starting Out With C++ From Control Structures Through Objects
C++ Programming Challenge 4-: Roman Numerals Converter
Write a program that asks the user to enter a number within the range of 1 throug 10. Use a C++ switch statement to display the Roman numeral version of that number.
Input Validation: Do not accept numbers less than 1 and more than 10.
In this exercise we use two different solutions to come up with the same results. In first solution we use switch statements as our conditional operator to “filter” the input and match it with correct answer. Second solution shows shows how to solve the problem using C++ arrays.
DOWNLOAD SOURCE FILES: cplusplus-4-2-RomanNumeralConverter