//--------------------------------------------------------- // Hmwk07.cpp // // Given a letter of the alphabet, this application will // find the corresponding digit on a telephone. // // REPLACE THIS WITH YOUR NAME // Asbury University // Sept. 2011 //--------------------------------------------------------- #include using namespace std; int main() { char letter; // Letter input by user char temp; char numeral; // Corresponding numeral on telephone cout << "Given a letter of the alphabet, this application will find the\n"; cout << "corresponding digit on the telephone.\n\n"; cout << "Enter a letter: "; cin >> letter; temp = tolower(letter); // Convert letter to lowercase and store it // in a temporary variable. (We want to // display the original letter in the output // section below.) // TO DO: Assign the appropriate value to "numeral" based // on the letter stored in the variable "temp". // TO DO: Display the results. return 0; }