Lerner 582 Nearly a Posting Maven

The microwave is nothing but an oversized paperweight unless you have a series of what to tell the microwave what you want it to do? I'd consider these things "Top-Level Objects" since nothing gets done without them, but then I'm not in your class so I don't know how your instructor is presenting things.

Lerner 582 Nearly a Posting Maven

Since this is probably a learning experience in how to manipulate data rather than scrounging the archives of the Standard Template Library, I would suggest you consider this:

Using the JAY example if you did this:

JAY
JYA
AJY
AYJ
YJA
YAJ

and note that you can get all permutations by taking each element of the original and combining it with each of the remaining elements in order. Each element could be an element of an array and then you could loop through the array starting each loop with a new element and using other loops to get the rest of the elements in order. This process lends itself quite nicely to the concept of nested loops, which I have little doubt was the subject of one of your classes, although as iamthwee indicates there are other ways of doing this.