Spring 2015

Lab04
Looping Letters

Due: Monday March 09, 2015 11:59 PM

Lab04 - Looping Letters

Requirements

User is prompted to enter a lowercase letter10 pts
User is not allowed to proceed unless they enter a lowercase letter25 pts
User is given as many opportunities as needed to enter the letter25 pts
All letters following entered letter are displayed35 pts
Program contains comments5 pts
Total100 pts

Resources

Objective

To work with while loops and characters

Instructions

For this lab you will need to prompt the user to enter a single character. The character the user enters must be lower case and the user should not be allowed to proceed in the program until a lowercase letter has been entered. If the user enters anything other than a lower case letter they should be informed of their mistake and given as many chances as are needed to enter a correct letter.

When the user has entered a lowercase letter the program should then show them all of the letters that follow their selected letter in the alphabet.

Example Output:

Enter a starting letter, lowercase: X
X is not a proper lowercase letter, try agian: 6
6 is not a proper lowercase letter, try agian: %
% is not a proper lowercase letter, try agian: f
Here are the letters that follow f: ghijklmnopqrstuvwxyz