Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedC++image text in transcribedimage text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Explain how you would reduce stress at work.

Answered: 1 week ago