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

C++ CS280 Programming Assignment 1 Spring 2018 In this assignment we willC++be reading from a file, or from standard input, and performing someanalysis based on options given to the program. For this assignment, thefollowing definitions apply: "Whitespace" is a sequence of one or more horizontal

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 "rea!word" is a word that has only letters in it A "capword" is a word that begins with an uppercase 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. 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 "rea!word" is a word that has only letters in it A "capword" is a word that begins with an uppercase 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

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!