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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!