For this assignment you are to duplicate the functionality of the UNIX program “wc?? or word count. Your program should read in characters from stdin until a ‘^’ is entered or until the maximum number of characters is reached (determined by the amount of memory available to your string). The entered characters should be stored in a string. After this you should repeat what was entered by printing out the string. Then you should print out the totals for the number of lines, words and characters. A word is a group of consecutive non-white space characters. For this assignment we will consider the following characters as white space: ‘ ‘ (space), ‘\t’ (tab), ‘\r’ (carriage return), ‘\n’ (line feed). Remember to count all characters, even white space characters. Example outputs are given below. Given the same input as the examples your program should have the same totals. A template of the program is given to you in a separate file (hw8.c). You must use this code. You cannot make any changes to the main function. You are to fill in the two functions without changing the input or output types. You can add more functions if you wish. Note: SIZE is defined as 200, do not change this. Remember not to allow the user to enter too many characters. You must not go out of the bounds of the string. If the limit is reached, the program should not complain or quit; instead it should fill in the values entered up to the limit and continue as if the user entered a ‘^’. (Hint: Remember the values are stored in a STRING) I have uploaded the actual .doc file given.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
Window XP -- Visual Basic C/C++