Question: LAB ASSIGNMENT #1 Problem Statement: Write a C Program to Scan and Count the number of characters, words, and lines in a piece of text
LAB ASSIGNMENT \#1 Problem Statement: Write a C Program to Scan and Count the number of characters, words, and lines in a piece of text input (or a text file). You should use the free C compiler option that I provided or you may use any other C compiler platform. AIM : To Write a C Program to Scan and Count the number of characters, words, and lines in a file. ALGORITHM / PROCEDURE/PROGRAM: 1. Start 2. Read the input file/text 3. Initialize the counters for characters, words, lines to zero 4. Scan the characters, words, lines and 5. increment the respective counters 6. Display the counts 7. End Input: Enter the Identifier input string below. (You can create an input file and read the file if you want) : These are a few words for my C programming assignment. My name is Output: Number of characters: Number of words: Number of lines: Submission: Please copy both your source code put them in a word file which you should upload. Make sure it is a word file because I will need to run it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
