Threesuns

Email the Instructor

Contact

All Semesters

Semesters

All Courses

Courses

2016Summer

06.06.16 - 07.31.16

C Language

CSCI2473

Tuesday Thursday
09:30 AM - 12:20 PM

Looping Letters

Lab05

Objective: To work with while loops and characters

pastdue

Submit Your Solution

Lab05

Request a Copy of your Solution

Lab05

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

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