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 outputs the question "Why are you yelling?". You can assume the user will enter exactly FIVE characters in lower case.

We suggest the following solution:

  1. declare five characters,
  2. input the five characters from the user,
  3. translate these five characters to upper case (ASCII storage is your friend!), and then
  4. print the five characters
  5. then print "Why are you yelling?",

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.

Lab Submission

You will submit your solution to this lab with your second homework assignment. Detailed instructions for doing this are posted in Homework 02.