janeou17xn
janeou17xn
18.12.2019 • 
Engineering

The letter e is the most frequently used letter in english prose, and the letter z is the least frequently used. a friend of yours doing a sociology experiment believes that this may not necessarily be true of the writings of first-year college students. to test his theory, he asks you to write a program that will take a text file and print, for each letter of the english alphabet, the number of times the letter appears in the file. you can use the sample.txt provided. try your program on other text files as well. hint: use an integer array of size 128, and use the ascii values of letters to index into the array to store and retrieve

Solved
Show answers

Ask an AI advisor a question