Yes, this is homework. This is my first course in programming and
I am having a problem translating what I know I need to do into
code. I basically need to write a progam that reads a person's
name in the following format: first name, then middle name or
initial, and then last name. The program then outputs the name in the
follow format: last name, first name middle name. Seems
simple enough... I got that part, but... The program should
allow for users to not give a middle name or initial. I've
attempted this numerous time. I'm figuring that I can create
separate functions that either takes in 2 or 3 variables but so far my
program does not wo
|