// Solution of Assignment 4
#include <iostream>
using namespace std;
int main()
{
        char repeat = 'Y', chr;
		
	while (toupper(repeat) == 'Y')
	{
		system("cls");
		cout << "Enter a letter to find its alphabetical order: ";
		cin >> chr;
		if (isalpha(chr))
			cout << "\n\n\tThe alphabetical order of "
				<< chr << " is " 
				<< toupper(chr) - 64 << ".\n\n";
		else
			cout << "\n\n\t\a" << chr 
					<< " is not a letter.\n\n";
		cout << "\nContinue (if yes, press y or Y, else "
			<< "press any other key)? ";
		cin >> repeat;
	}

        return 0;
}

