A common utity on Unic Linux systems is a small program call
A common utity on Unic Linux systems is a small program calld This program analyzes afile to determine the number of ines wrd contained therein. Write your own version of wc. The program should accept a file name as input and then print three numbers showing the count of lines, program analyzes a file to determine the number of lines, words, and characters words, and characters in the file. Use the following as starter code (its image file is also posted to Blackboard): # HW 6 wc utility # Do not modify next seven lines def wc0 print(Word count utility\") print0 fname input( Enter file name: # Your code starts here. Use as many lines as needed. # Do not modify the following lines print Characters.\", chas) print(Words:\", words) wco
Solution
////////// similarly we implement words and characters in the file by replacing words or charecters in the place of lines.
