LAB 02C - ASCII FUN

Get Started

To get started, create an empty project called Lab02C and add a source file called main.cpp. Then cut/paste the shell of a program from Lab02B, update the comment section, and build/execute the program. Make sure everything runs fine before moving on to the next step.

Instructions

Write a program that coverts lower case characters to upper case, prints out these upper case characters, and then asks the question " - why are you yelling?" (using a string literal). You can assume the user will enter exactly FIVE characters in lower case.

We suggest the following solution:

  1. declare five characters,
  2. declare a string literal that is initialized to " - why are you yelling?",
  3. input the five characters from the user,
  4. translate these five characters to upper case (ASCII storage is your friend!), and then
  5. print the five characters (no spaces between characters) followed by the string literal.

Lastly, always, always, ALWAYS update the header comments at the top of your main.cpp file. And if you ever get stuck, remember that there is LOTS of help available.