Question: Write a program that counts the metrics of a file. Number of all characters(A-Z), Number of whitespaces, Number of lines, Number of all lower-case letters.
Write a program that counts the metrics of a file. Number of all characters(A-Z), Number of whitespaces, Number of lines, Number of all lower-case letters.
Assume constant file names. Open a file in read mode. After that, character by character, read the file and count the numbers asked. Remember to close the file.
C Using stdio.h
Example output:
Characters: 963
Whitespaces: 202
Lower case a: 126
Lower case b: 96
and so on...
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
