Question: 2. Write a C++ program that reads characters from the standard input stream until it reaches an end-of-file sentinel (that you select). For each character,
2. Write a C++ program that reads characters from the standard input stream until it reaches an end-of-file sentinel (that you select). For each character, have the program report whether it is a letter and also report its numerical location in the alphabet. For example, c and D would each be letter 3. Functions should be used as follows: A function that takes a character as an argument and returns the numerical location of the character if it is a letter or a -1 if it is not a letter a. b. Afunction that will print the letter and it's location. This should be placed in a file for later print
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
