subject

Write a program that reads a given text file, outputs the text file as is, and also prints the number of lines and the number of times each letter appears in the text file. (to simplify things, treat uppercase letters and lowercase letters as being the same.)
create an array of 26 components to do the letter count for the 26 letters in the alphabet and a variable for the line count. (you may wish to call these variables lettercount and linecount respectively.)
hint: use the plan of declaring variables, opening input and output files, initializing the variables, reading and writing the character for each character in a line, incrementing the letter count, incrementing the line count, outputting line and letter counts and, finally, closing the input and output files. (you may wish to call the program outputting line and letter counts writetotal.)
create an ascii (or text) file that contains text that will be used as input to your program. call this file textinput.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 03:30
What is the purpose of a computer network needs assessment? to analyze which workers need more training to improve their performance to compare worker productivity to determine what steps employees can take to increase company revenue to evaluate how to move from the current status to the desired goal
Answers: 2
question
Computers and Technology, 24.06.2019 08:10
Where are american poets found in the dewey decimal system
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
If you want to delete an entire word at a time, which key should you press along with the backspace or delete key?
Answers: 1
question
Computers and Technology, 25.06.2019 07:10
When you “listen” to evaluate an online message, which question should you ask?
Answers: 1
You know the right answer?
Write a program that reads a given text file, outputs the text file as is, and also prints the numbe...
Questions
question
Spanish, 17.10.2019 10:00
question
Social Studies, 17.10.2019 10:00