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 getletter.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 ie '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 and inclusive
This means that
index corresponds to A
index corresponds to B and
so on till we reach index which corresponds to Z
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
