Question: Program / 2 : Upper or Lower? This program will prompt the user as to whether they wish to view upper or lowercase letters. The
Program : Upper or Lower?
This program will prompt the user as to whether they wish to view upper or lowercase letters. The user will then enter a response for example, the letter u for uppercase or for lowercase So if the user were to select uppercase, the program should then display all the alphabetic letters in uppercase; if the user specifies lowercase, the program should display all the lowercase letters.
In order to test to see which character the user enters at the keyboard, you'll need to test the value of variable and determine what's stored in it This will require a simple if statement, which you can read about beginning on p An example dealing with an integer is on p and the syntax mopuirements is on p It would probsbly be wise to first write some quick throwaway code to experiment with ifelse statements so you hawe a good feeling about them.l
Another restriction on this program you cant simply display a string literal containing the alphabet! Instesd, you must figure out how to generate the alohabetic display with a "whice" loop. If you're Stuck, read up on the "chare" data type, and also check out the ASCll chart on p in your book, Ssve your code in a file called upperorlower,cpp in the HW subdirectory.
Have fun!
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
