Question: Must be in c++ programming. Instructions for what the functions should look like and do are in the pictures along with the rest of the
Exercise 2 (50 points): Write a program that repeatedly allows the user to enter a line of text and determines and displays how many times each of the letters in the alphabet appear in each line. Create an integer array with 26 elements that will store a count of the A's, B's, C's etc. Store a count of the A's at subscript 0, B's at subscript 1, etc. Hint you subtract 'A' from any uppercase letter you get an integer that is the character's offset from the letter 'A'. For example: 'A'-'A' = 0 'B'-'A, 1 'C'-'A' =2 Z'-'A' =25 Also: cout (0 + A.); // Prints A cout (1'A'; /1 Prints B cout (2'A // Prints c You may use the library functions isupper and toupper to reduce the amount of code you must write. Include the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
