I am required to write a program that uses input, output, an array of characters, an if statement, and a for loop. Simply put, I cannot seem to come up with anything that requires all five (mainly do to my issues with for loops). While I'm sure I can write it, does anyone have any ideas of what I could do? The program is supposed to be simple, yet with a purpose.
The purpose of the post was simply to as for help with coming up with something to code based on the perimeters. So currently, I have no code. Additionally, my search did not come up with any results like mine.
How about a simple name checker. You ask for an input (string), store it as an array of characters. Then, loop through the array making sure that the beginning of each word (if char == 'space', next char should be capitalized) is uppercase. Then output the answer "Yes, valid name" or "No, invalid name". Extra credit for fixing an invalid name and displaying it too.