//Haroon Achackzad CS1A Chapter 4, P. 220, #2
//
/**************************************************************
*
* Roman Numeral Converter
* ____________________________________________________________
* This program asks the user to enter a number within the range
* 1 tbrough 10.Use a switch statement to display the roman numeral
* version of the number.
*
* Computation is based on the formula:
* 1-10 is Equal to I- X
* ____________________________________________________________
* INPUT
* userNumber: The number in between 1-10
*
* OUTPUT
* The ROman Numeral: Numeral in Roman version
*
**************************************************************/
#include <iostream>
using namespace std;
int main() {
// variables
int userNumber;
//Ask the user to enter a number betwen 1 and 10 (within the range)
cout << "Enter a number between 1 and 10: ";
cin >> userNumber;
//Use the switch statement to display the Roman Numeral version of that #
switch (userNumber)
{
case 1:
cout << "The roman numeral for ";
cout << userNumber <<"is I\n";
break;
case 2:
cout << "The roman numeral for ";
cout << userNumber <<"is I\n";
break;
case 3:
cout << "The roman numeral for ";
cout << userNumber <<"is I\n";
break;
case 4:
cout << "The roman numeral for ";
cout << userNumber <<"is I\n";
break;
case 5:
cout << "The roman numeral for ";
cout << userNumber <<"is I\n";
break;
case 6:
cout << "The roman numeral for ";
cout << userNumber <<"is I\n";
break;
case 7:
cout << "The roman numeral for ";
cout << userNumber <<"is I\n";
break;
case 8:
cout << "The roman numeral for ";
cout << userNumber <<"is I\n";
break;
case 9:
cout << "The roman numeral for ";
cout << userNumber <<"is I\n";
break;
case 10:
cout << "The roman numeral for ";
cout << userNumber <<"is I\n";
break;
default:
cout << "you must enter a number betwen 1 and 10\n";
cout << "Run the program over and try again .\n";
break;
}
return 0;
}