/* OS Questioneer 1.0.0
By Jonathan Vasquez
Made on 11/25/07
Last updated on 11/25/07
*/
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main (int argc, char * const argv[])
{
int switchOne;
cout << "What Operating System are you using ?" << endl;
cout << "1. Mac OS X" << endl;
cout << "2. Windows *" << endl;
cout << "3. Linux" << endl;
cout << "Current Selection: ";
cin >> switchOne;
switch( switchOne )
{
int switchTwo;
case 1:
cout << "You selected Mac OS X" << endl << endl;
cout << "What OS X version are you using ?" << endl;
cout << "1. 10" << endl;
cout << "2. 10.1" << endl;
cout << "3. 10.2" << endl;
cout << "4. 10.3" << endl;
cout << "5. 10.4" << endl;
cout << "6. 10.5" << endl;
cin >> switchTwo;
switch( switchTwo )
{
case 1:
cout << "You have selected version 10 - Too Old To Remember." << endl;
break;
case 2:
cout << "You have selected version 10.1 - Too Old To Remember." << endl;
break;
case 3:
cout << "You have selected version 10.2 - Puma" << endl;
break;
case 4:
cout << "You have selected version 10.3 - Panther" << endl;
break;
case 5:
cout << "You have selected version 10.4 - Tiger" << endl;
break;
case 6:
cout << "You have selected version 10.5 - Leopard" << endl;
break;
default:
cout << "You haven't selected a proper version, closing.";
break;
}
break;
case 2:
cout << "You selected Windows *" << endl << endl;
cout << "What Windows version are you using ?" << endl;
cout << "1. 1.0" << endl;
cout << "2. 3.0(1)" << endl;
cout << "3. 95"<< endl;
cout << "4. 98" << endl;
cout << "5. ME/2000" << endl;
cout << "6. XP" << endl;
cout << "7. VISTA" << endl;
cin >> switchTwo;
switch( switchTwo )
{
case 1:
cout << "You have selected 1.0." << endl;
break;
case 2:
cout << "You have selected 3.0(1)." << endl;
break;
case 3:
cout << "You have selected 95." << endl;
break;
case 4:
cout << "You have selected 98." << endl;
break;
case 5:
cout << "You have selected ME/2000." << endl;
break;
case 6:
cout << "You have selected XP." << endl;
break;
case 7:
cout << "You have selected VISTA." << endl;
break;
default:
cout << "You haven't selected a proper version, closing.";
break;
}
break;
case 3:
cout << "You have selected Linux" << endl << endl;
cout << "What distro of Linux are you using ?" << endl;
cout << "1. Debian or Deritive" << endl;
cout << "2. Red Hat or Deritive" << endl;
cout << "3. Slackware or Deritive" << endl;
cout << "4. Other" << endl;
cin >> switchTwo;
switch( switchTwo )
{
case 1:
cout << "You have selected Debian or Deritive." << endl;
break;
case 2:
cout << "You have selected Red Hat or Deritive." << endl;
break;
case 3:
cout << "You have selected Slackware or Deritive." << endl;
break;
case 4:
cout << "You have selected Other." << endl;
break;
default:
cout << "You haven't selected a proper distro, closing.";
break;
}
break;
default:
cout << "You have not selected anything, closing.";
break;
}
return 0;
}