//George Molinero csc5 chapter 4, P. 220, #2
//
/*******************************************************************************
*
* Display Roman Numeral
* _____________________________________________________________________________
* This program Displays the Roman Numeral of the Numbers 1-10.
* _____________________________________________________________________________
* INPUT
* num : Number inputed
*
* OUTPUT
* Roman Numeral Displayed
******************************************************************************/
#include <iostream>
using namespace std;
int main ()
{
int num;
cout << "Enter a number within the range of 1 through 10: ";
cin >> num;
cout << endl;
if (num >= 1 && num <= 10)
{
switch(num)
{
case 1: cout << "The Roman numeral version of " << num << " is I.\n";
break;
case 2: cout << "The Roman numeral version of " << num << " is II.\n";
break;
case 3: cout << "The Roman numeral version of " << num << " is III.\n";
break;
case 4: cout << "The Roman numeral version of " << num << " is IV.\n";
break;
case 5: cout << "The Roman numeral version of " << num << " is V.\n";
break;
case 6: cout << "The Roman numeral version of " << num << " is VI.\n";
break;
case 7: cout << "The Roman numeral version of " << num << " is VII.\n";
break;
case 8: cout << "The Roman numeral version of " << num << " is VIII.\n";
break;
case 9: cout << "The Roman numeral version of " << num << " is IX.\n";
break;
case 10: cout << "The Roman numeral version of " << num << " is X.\n";
break;
}
}
else
cout << "invalid number was entered";
return 0;
}