Question
C Language Problem: Write a program that reads input as a stream of characters until encountering EOF. Have it report the number of uppercase letters,
C Language Problem: "Write a program that reads input as a stream of characters until encountering EOF. Have it report the number of uppercase letters, the number of lower case letters, and the number of other characters in the input. You may assume that the numeric values for the lowercase letters are sequential and assume the same for uppercase. Or, more portably, you can use appropriate classification functions from the ctype.h library.
I enclose both my main driver and my program "chartype". When I run only chartype, the program runs correctly. I have to use Ctrl+D (on my Mac) to stop running the program. However, when I linked my program "chartype" to my main driver, the program kept running. It did not terminate and it did not display the result on the screen. There is something wrong in my linking. Both programs were just fine. I need your help figuring out how to display the result correctly. Note: I think we have to use Ctrl + Z for windows and Ctrl+D for Mac.
#include #include #include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started