Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use C++ 9:00 njit2.mrooms.net 1 of 4 CS280 Programming Assignment 1 Spring 2018 In this assignment we will be reading from a file, or
Please use C++
9:00 njit2.mrooms.net 1 of 4 CS280 Programming Assignment 1 Spring 2018 In this assignment we will be reading from a file, or from standard input, and perfoming 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 isspacefrom 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. Wont 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. 9:00 njit2.mrooms.net 1 of 4 CS280 Programming Assignment 1 Spring 2018 In this assignment we will be reading from a file, or from standard input, and perfoming 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 isspacefrom 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. Wont 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 filesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started