How would I write this program:
Wrte a program that will read a line of text that ends witha period, which serves as a sentinal value. Display all the letters that occur in the text, one per line and in alphabetical order, along with the number of times each letter occurs in the text. Use an array of base type int of length 26, so that the element at index 0 contains the number of a's, the element and index 1 contains the number of b's and so forth. Allow both uppercase and lowercase letters as input, but treat uppercase and lowercase versions the same letter as being equal. Allow the user to repeat this task until the user says she or he is through.