Homework 5

Assigned 3/2/05

Task: Write a program that asks the user for an integer and a character. The program should then print out a diamond composed of that character with its widest point being as many characters as the integer that was entered. For example, if the integer was 5 and the character was *, the output would look like:

  *
 ***
*****
 ***
  *

If the input is an even number, it should be increased to the next odd number.
As always, use meaningful variable names, proper indentation, comments, and useful prompts to the user.

Purpose: To get practice using loops. Not incidentally, this will also force you to think about just how you would solve this problem.