Friday, October 14, 2011

Homework 2 - random number -
      alternate input option

If you would like to write an enhanced version of the second homework assignment, you can read in a char (instead of an int) and you can switch on the character entered. If you apply the tolower() function to that input character, you can make your program transparently deal with case sensitivity:

c = tolower(c);

Sample Output
Here is a screenshot of my code running.

Enhanced random number generator output


Due date remains the same.