Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help as guidance, i'm confused to what to do. CS280 Programming Assignment 1 Spring 2018 In this assignment we will be reading from a file,

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Help as guidance, i'm confused to what to do.

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 . 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: hello is a word, a goodword, and a realword Hello is a word, a goodword, a realword, and a capword Won't is a word and a capword Art3mis is a word, a goodword, and a capword SCUBA is a word, a goodword, a realword, a capword, and an acronym C3PO is a word, a goodword and a capword higgledy-piggledy is a word i. ii. ili. iv. V. vi. vii. 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. The program must also track the longest word, goodword, and realword in the input, and may print out this information based on command line flags. Note that it may be the case that there are multiple words with the same length. 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 . 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: hello is a word, a goodword, and a realword Hello is a word, a goodword, a realword, and a capword Won't is a word and a capword Art3mis is a word, a goodword, and a capword SCUBA is a word, a goodword, a realword, a capword, and an acronym C3PO is a word, a goodword and a capword higgledy-piggledy is a word i. ii. ili. iv. V. vi. vii. 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. The program must also track the longest word, goodword, and realword in the input, and may print out this information based on command line flags. Note that it may be the case that there are multiple words with the same length

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

=+1. What are the functions of the outer ear and the middle ear?

Answered: 1 week ago

Question

How did you feel about taking piano lessons as a child? (general)

Answered: 1 week ago