Question 3: Write a program that reads a file of text and displays the number of words in that file. The filename is entered by the user. A Word is defined to be any number of consecutive letters...


Question 3:<br>Write a program that reads a file of text and displays the number of words in that file.<br>The filename is entered by the user.<br>A Word is defined to be any number of consecutive letters (a...z, A...Z) only. Words<br>are separated from each other by spaces (* “) and/or commas (*,') and/or semicolon (*;')<br>and/or full stop (':').<br>Your program should write the words in the file

Extracted text: Question 3: Write a program that reads a file of text and displays the number of words in that file. The filename is entered by the user. A Word is defined to be any number of consecutive letters (a...z, A...Z) only. Words are separated from each other by spaces (* “) and/or commas (*,') and/or semicolon (*;') and/or full stop (':'). Your program should write the words in the file "output.txt" along with the total word count. As shown below. file.txt Abedef, ;; gfdyire hsdhfkdsf, , ; , dkjfkjdljkfldj. .. mnbsdT .. ;; nbmxhs , a djks. output.txt Abcdef gfdyire hsdhfkdsf dkjfkjdljkfldj mnbsdT nbmxhs a djks Total count of words are = 8

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here