Computers and Technology, 22.11.2019 04:31, kinderc9330
6.13: word count
write a program that prompts the user to input the name of a text file and then outputs the number of words in the file. you can consider a “word” to be any text that is surrounded by whitespace (for example, a space, carriage return, newline) or borders the beginning or end of the file.
input notes: there are two input sources in this program: the text file and standard input. the standard input consists of a single word, the name of the text file to be read.
output notes (prompts and labels): the filename provided in standard input is prompted for with "enter a file name: " and displayed so that the filename entered is on the same line as the prompt.
the output of the program is a single line of the form: "the file contains n words." where n is the number of words determined by the program.
Answers: 1
Computers and Technology, 05.08.2019 16:10, alflores27p91de1
Answers: 1
Computers and Technology, 10.10.2019 00:20, Arealbot
Answers: 1
Computers and Technology, 11.11.2019 18:31, jaimes04
Answers: 2
Computers and Technology, 22.11.2019 17:31, sabrinarasull1pe6s61
Answers: 2
6.13: word count
write a program that prompts the user to input the name of a text file and t...
write a program that prompts the user to input the name of a text file and t...
Mathematics, 27.01.2021 03:40
History, 27.01.2021 03:40
Mathematics, 27.01.2021 03:40