15a_Assignment_5

15a_Assignment_5 - Assignment 5 - Text Processing Select...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Assignment 5 - Text Processing Select one option from the five below. All options are worth the same number of points. The more advanced options are provided for students who find the basic ones too easy and want more of a challenge. Make sure you have read and understand the Modules Information About Programming Assignments and Style Rules for Assignments before submitting this assignment. Hand in only one program, please. OPTION A (Basic): Manipulating User Strings Ask the user to enter a phrase, sentence or paragraph. Read it in as a string, then report back to the user by displaying the following: 1. The user's string all up-cased (converted to ALL CAPITALS). 2. The user's string all down-cased (converted to all lower case) 3. Report the number of vowels in the input string ('a', 'e', 'i, 'o', 'u' and uppercase equivalents)). 4. Report the number of consonants in the input string (count all non-vowel letters and 'y' as a consonant). 5. Display the string in reverse order ("Hi, Mom" would be "moM ,iH").
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/21/2011 for the course CIS 15A taught by Professor Unknown during the Spring '07 term at Foothill College.

Page1 / 2

15a_Assignment_5 - Assignment 5 - Text Processing Select...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online