Introduction to Computer Science I by James Tam | Return to the course web page |
Grade out of 24 | Letter |
53 - 54 | A+ |
51 - 52 | A |
48 - 50 | A- |
44 - 47 | B+ |
40 - 43 | B |
36 - 39 | B- |
32 - 35 | C+ |
28 - 31 | C |
24 - 27 | C- |
18 - 23 | D+ |
12 - 17 | D |
6 - 11 | D- |
0 - 5 | F |
For this assignment you are to write a program that will prompt the user to enter a sentence. The end of the sentence will be marked with a period '.' (your program doesn't have to deal with other forms of punctuation). Sentences will range from 0 characters in length i.e., the user just enters a period '.' up to 79 characters (with the 80th character being a period). The program will then display the sentence that was entered and an analysis of the input: the number of characters entered (up to and excluding the period) and the number of words. Words will be separated with a single space with the last word ending in a period.
Features to be implemented | |
|
|
|
|
|
|
|
|
|
|
|
|
|
To help make sure that you haven't missed anything here is a checklist of items to be used in marking. A sample executable 'analyzer' can be found in UNIX under the directory: /home/231/tamj/assignments/assignment6.