Threesuns

Email

Contact

All Semesters

Semesters

All Courses

Courses

C Language

CSCI2473

3 credits

Labs

Looping Letters

Lab

100 points

Requirements

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

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