Looping Letters

WHERE DID THE DESIGN GO?

This website is not broken, the owner of it has decided to participate in Naked CSS Day 2025!

Naked CSS Day is a event that is held once per year (April 9th) to celebrate good & well planned design. The website will be back to its normal state tomorrow.

100 points

Looping Letters

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

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