Assignment 3 - Fun with characters - Due September 8th

Assignment Summary

In this assignment, you will write an application that prompts the user for a number of characters that they would like to convert to uppercase characters. Your program will convert each to its uppercase equivalent and output them one at a time.

Requirements:

1) Your program needs to output a brief description to the user. This will only occur once for each execution of the application. 

Welcome to fun with characters!
This program takes a number of characters
and converts those characters to their uppercase equivalent.
************************************************************

2) Your program needs to prompt the user for the number of characters they would like to convert.

Please type the number of characters you would like to convert.

3) Once the user inputs the number of characters they would like to convert, prompt the user for a lowercase character.

Please type a lowercase character for character number #
<char #>

Your program should replace the # with the current character that is being input.

4) Test to make sure the the character is a lowercase character and not any other character. If it is not a lowercase alpha character, output the following message and repeat step 3.

You've typed an invalid character!
Please try again

If the user continues to type invalid characters, your application should continue outputting the message.

5) Output the character that was input and the current character number. Example,

You typed the character 'r' for character number 2

6) Output the character and its equivalent uppercase character.

r capitalized is 'R'

You application should repeat these steps as many times as the user specified in step 2.

7) Name your file charFun.cpp

Here is sample output from an execution of my program:

Welcome to fun with characters!
This program takes a number of characters
and converts those characters to their uppercase equivalent. ************************************************************
Please type the number of characters you would like to convert.
2
Please type a lowercase character for character number 1
<char 1> w
************************************************************
You typed the character 'w' for character number 1 ************************************************************
w capitalized is 'W'
************************************************************
Please type a lowercase character for character number 2
<char 2> *
************************************************************
You've typed an invalid character!
Please try again
************************************************************
Please type a lowercase character for character number 2
<char 2> @
************************************************************
You've typed an invalid character!
Please try again
************************************************************
Please type a lowercase character for character number 2
<char 2> ?
************************************************************
You've typed an invalid character!
Please try again
************************************************************
Please type a lowercase character for character number 2
<char 2> e
************************************************************
You typed the character 'e' for character number 2 ************************************************************
e capitalized is 'E'
************************************************************

 

The assignment will be turned in at the beginning of class on the 8th. You need to print a copy of your cpp file, post the code to the server, compile, and execute the code on the server.

Objectives:

If you have questions, feel free to contact me at brippe@fullcoll.edu