Question: CODE C++ CS280 Programming Assignment 1 Spring 2018 In this assignment we will be reading from a file, or from standard input, and performing some

CODE C++CODE C++ CS280 Programming Assignment 1 Spring 2018 In this assignment wewill be reading from a file, or from standard input, and performingsome analysis based on options given to the program. For this assignment,

CS280 Programming Assignment 1 Spring 2018 In this assignment we will be reading from a file, or from standard input, and performing some analysis based on options given to the program. For this assignment, the following definitions apply: Whitespace" is a sequence of one or more horizontal or vertical non-printed spaces. A sequence of spaces, tabs, newlines, form feeds, etc are "whitespace". A character is whitespace if isspace) from cctype is true A "word" is a sequence of one or more non-whitespace characters, separated by whitespace A "goodword" is a word that has only letters and numbers in it A "realword" is a word that has only letters in it A "capword" is a word that begins with an upper case letter An "acronym" is a word that contains only uppercase letters . . Note that by these definitions 1. hello is a word, a goodword, and a realword 2. Hello is a word, a goodword, a realword, and a capword 3. Won't is a word and a capword 4. Art3mis is a word, a goodword, and a capword 5. SCUBA is a word, a goodword, a realword, a capword, and an acronym 6. C3PO is a word, a goodword and a capword 7. higgledy-piggledy is a word The assignment is to write a program that copies from input to output. Based on command line arguments, the program may modify the input before generating output, and may gather and print statistics The command line arguments are zero or more "flags" followed by an optional filename. A "flag is a command line argument that begins with a hyphen. If a filename is provided, it must be the last command line argument, and can not begin with a hyphen. If a filename is provided, then the file with that name provides the input to the program. If a filename is not provided, then the program should read the standard input. All output must be sent to the standard output. The program should count the number of characters, lines, words, goodwords, realwords, capwords and acronyms in the input and the output The program may, based on command line flags, print out these counters when it has completed the processing of input files CS280 Programming Assignment 1 Spring 2018 In this assignment we will be reading from a file, or from standard input, and performing some analysis based on options given to the program. For this assignment, the following definitions apply: Whitespace" is a sequence of one or more horizontal or vertical non-printed spaces. A sequence of spaces, tabs, newlines, form feeds, etc are "whitespace". A character is whitespace if isspace) from cctype is true A "word" is a sequence of one or more non-whitespace characters, separated by whitespace A "goodword" is a word that has only letters and numbers in it A "realword" is a word that has only letters in it A "capword" is a word that begins with an upper case letter An "acronym" is a word that contains only uppercase letters . . Note that by these definitions 1. hello is a word, a goodword, and a realword 2. Hello is a word, a goodword, a realword, and a capword 3. Won't is a word and a capword 4. Art3mis is a word, a goodword, and a capword 5. SCUBA is a word, a goodword, a realword, a capword, and an acronym 6. C3PO is a word, a goodword and a capword 7. higgledy-piggledy is a word The assignment is to write a program that copies from input to output. Based on command line arguments, the program may modify the input before generating output, and may gather and print statistics The command line arguments are zero or more "flags" followed by an optional filename. A "flag is a command line argument that begins with a hyphen. If a filename is provided, it must be the last command line argument, and can not begin with a hyphen. If a filename is provided, then the file with that name provides the input to the program. If a filename is not provided, then the program should read the standard input. All output must be sent to the standard output. The program should count the number of characters, lines, words, goodwords, realwords, capwords and acronyms in the input and the output The program may, based on command line flags, print out these counters when it has completed the processing of input files

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!