//Conrad Taylor CSC5 Chapter 4, P. 220, #5
//
/*******************************************************************************
* Number Size Comparitor
* _____________________________________________________________________________
* This program converts numbers from input and converts them to roman numerals
* and outputs the result.
* _____________________________________________________________________________
* INPUT
* userNum
*
* OUTPUT
* romanNumerals
******************************************************************************/
#include <iostream>
using namespace std;
int main()
{
int userNum;
cout << "Enter a number between 1 and 10: ";
cin >> userNum;
switch (userNum)
{
case 1:
cout << "The Roman numeral I ";
break;
case 2:
cout << "The Roman numeral is II ";
break;
case 3:
cout << "The Roman numeral is III ";
break;
case 4:
cout << "The Roman numeral is IV ";
break;
case 5:
cout << "The Roman numeral is V ";
break;
case 6:
cout << "The Roman numeral is VI ";
break;
case 7:
cout << "The Roman numeral IS VII ";
break;
case 8:
cout << "The Roman numeral VIII ";
break;
case 9:
cout << "The Roman numeral is IX ";
break;
case 10:
cout << "The Roman numeral is X ";
break;
default:
cout << "You must enter a number between 1 and 10\n";
cout << "try again.\n";
break;
}
return 0;
}