(Latest Revision: Fri, Sep 30, 2014)
Script started on Fri Sep 30 18:51:22 2014 lucifer.local>> a.out This program reads a character typed by the user at the keyboard. If the character is an upper case letter corresponding to one of the digits on a touch tone phone (not a cell phone), then this program prints that phone digit. Otherwise, this program prints an error message. There are separate error messages for four types of errors: * User enters upper-case letter with no corresponding digit * User enters lower-case letter * User enters digit * User enters a character that is not a letter or digit Please enter a character: Z Sorry, [ Z ] is an upper-case letter that does not correspond to a telephone digit. lucifer.local>> a.out This program reads a character typed by the user at the keyboard. If the character is an upper case letter corresponding to one of the digits on a touch tone phone (not a cell phone), then this program prints that phone digit. Otherwise, this program prints an error message. There are separate error messages for four types of errors: * User enters upper-case letter with no corresponding digit * User enters lower-case letter * User enters digit * User enters a character that is not a letter or digit Please enter a character: i Sorry, [ i ] is a lower-case letter - upper-case letter input required. lucifer.local>> a.out This program reads a character typed by the user at the keyboard. If the character is an upper case letter corresponding to one of the digits on a touch tone phone (not a cell phone), then this program prints that phone digit. Otherwise, this program prints an error message. There are separate error messages for four types of errors: * User enters upper-case letter with no corresponding digit * User enters lower-case letter * User enters digit * User enters a character that is not a letter or digit Please enter a character: 6 Sorry, [ 6 ] is a digit - upper-case letter input required. lucifer.local>> a.out This program reads a character typed by the user at the keyboard. If the character is an upper case letter corresponding to one of the digits on a touch tone phone (not a cell phone), then this program prints that phone digit. Otherwise, this program prints an error message. There are separate error messages for four types of errors: * User enters upper-case letter with no corresponding digit * User enters lower-case letter * User enters digit * User enters a character that is not a letter or digit Please enter a character: P [ P ] ==> 7 lucifer.local>> a.out This program reads a character typed by the user at the keyboard. If the character is an upper case letter corresponding to one of the digits on a touch tone phone (not a cell phone), then this program prints that phone digit. Otherwise, this program prints an error message. There are separate error messages for four types of errors: * User enters upper-case letter with no corresponding digit * User enters lower-case letter * User enters digit * User enters a character that is not a letter or digit Please enter a character: E [ E ] ==> 3 lucifer.local>> a.out This program reads a character typed by the user at the keyboard. If the character is an upper case letter corresponding to one of the digits on a touch tone phone (not a cell phone), then this program prints that phone digit. Otherwise, this program prints an error message. There are separate error messages for four types of errors: * User enters upper-case letter with no corresponding digit * User enters lower-case letter * User enters digit * User enters a character that is not a letter or digit Please enter a character: A [ A ] ==> 2 lucifer.local>> a.out This program reads a character typed by the user at the keyboard. If the character is an upper case letter corresponding to one of the digits on a touch tone phone (not a cell phone), then this program prints that phone digit. Otherwise, this program prints an error message. There are separate error messages for four types of errors: * User enters upper-case letter with no corresponding digit * User enters lower-case letter * User enters digit * User enters a character that is not a letter or digit Please enter a character: R [ R ] ==> 7 lucifer.local>> a.out This program reads a character typed by the user at the keyboard. If the character is an upper case letter corresponding to one of the digits on a touch tone phone (not a cell phone), then this program prints that phone digit. Otherwise, this program prints an error message. There are separate error messages for four types of errors: * User enters upper-case letter with no corresponding digit * User enters lower-case letter * User enters digit * User enters a character that is not a letter or digit Please enter a character: ? Sorry, [ ? ] is not a letter or digit - upper-case letter input required. lucifer.local>> a.out This program reads a character typed by the user at the keyboard. If the character is an upper case letter corresponding to one of the digits on a touch tone phone (not a cell phone), then this program prints that phone digit. Otherwise, this program prints an error message. There are separate error messages for four types of errors: * User enters upper-case letter with no corresponding digit * User enters lower-case letter * User enters digit * User enters a character that is not a letter or digit Please enter a character: @ Sorry, [ @ ] is not a letter or digit - upper-case letter input required. lucifer.local>> exit exit Script done on Fri Sep 30 18:54:03 2014