Question: Can you please solve this question in c++?? TFVV 3:02 PM Lab 7-ArrayOfLetters.pdf Lab 7- Array of Letters (in class) CSCI 259 Problem Statement In
TFVV 3:02 PM Lab 7-ArrayOfLetters.pdf Lab 7- Array of Letters (in class) CSCI 259 Problem Statement In this lab assignment, we will identity the frequency of each letter in a To begin, prompt a user for a sentence. Then, step through each character, and, i it is a leter increment the appropriate element in a letier array Le, each element in the folowing aay tracks d element means there sx occumences of the letier o Finally, output the letter array. Isee Sample Output). Input Data a seence, string Output Data The letter armay, listing the number of occumences for each letter Getting Started 1. Name your project Letters 2. Include header comments formatted as shown below (you may want to copy and paste the header from a previous lab assignment and edt description). do not forget to include the program Counse: CSCI 259, Secion Student Due Dae: h keeping with the Honor Code of UM, Ihave neithe given nor received assistance from anyone oher than the istructor Program Description O: 12345678 1. In the main function, declare variables needed for the program 2. Initialce the etter array to be a 26 element array of zeroes. 3. Prompt for a sentence. You should convert the sentence to lower case so that you anly need one array of letters as shown. The folowing example converts a saring to lowercase string dataABC transform(data begin), data endo, data beginO. tolower) your ASCIl table, what is the range of ASCll values from lowercase a to lowercase r 5. If your character is a certain leter, you will want to increment the appropriate element in your letter aray (as in, count its occurrences!)Look at the picture of the array in the Open With Print
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
