Homework #11 Solution

$30.00 $24.00

Note: The third test is currently scheduled for May 30 and will cover the final five weeks of lecture and related homework (Chapters 6–8). Please turn in, with this homework, a 15-question AccuScan form and an 8.5” by 11” Examination Book. Write your name on the back side of the form and the book. Write…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Description

5/5 – (2 votes)

Note: The third test is currently scheduled for May 30 and will cover the final five weeks of lecture and related homework (Chapters 6–8). Please turn in, with this homework, a 15-question AccuScan form and an 8.5” by 11” Examination Book. Write your name on the back side of the form and the book. Write nothing else anywhere on the form.

Write a function that receives single string parameter and returns a vector of strings. The contents of the vector should be the individual words in the parameter. The definition of “word” is whitespace-delimited, as used by input streams when strings are read with the >> operator.

This function will need to look through the individual characters in the string/line, keeping track of when there are spaces and non-spaces, in order to identify and extract words.

Your program should input lines from the keyboard and use the function above to get a vector of words, which should then be outputted.

The executable program Gold11.exe provides demonstration of what your program should do.

Your program should be designed and implemented using top-down programming techniques: use functions for sub-tasks. The functions should be divided among three files: one for main, one for the tools, and one for the program-specific functions. You should turn in a structure chart that shows the structure of the program-specific functions in your program.

You should turn in (in a pocket folder): this assignment/grading sheet, a statement of completeness (see the back of this sheet), a structure chart, and printouts of your program-specific functions and any tools that you may invent. All items should be labeled appropriately. You should also place a “soft” (electronic) copy of a folder containing all of your project’s code and header files (.cpp and .h) into your private FTP folder.

Homework #11 Solution
$30.00 $24.00