Question: Write a C program get _ letter.c that prints a letter from the alphabet in either uppercase or lowercase, given its position. First, scan in

Write a C program get_letter.c that prints a letter from the alphabet in either uppercase or lowercase, given its position.
First, scan in a character.
This character will determine whether the letter should be printed in uppercase or lowercase.
The character entered will be either 'y' or 'n', i.e. 'yes' or 'no'.
If the character entered is 'y', then the letter should be printed in uppercase.
If the character entered is 'n', then the letter should be printed in lowercase.
Second, scan in an integer.
This integer is the 'index' that we will use to determine which letter of the alphabet to print.
The integer entered will be a number between 0 and 25(inclusive).
This means that
index 0 corresponds to 'A',
index 1 corresponds to 'B' and
so on till we reach index 25 which corresponds to 'Z'.
 Write a C program get_letter.c that prints a letter from the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!