Hello! I was wondering if you could help me with something that I am currently stuck on. I could really use some advice in order to complete my assignment.
Here's the task:
Display at the console all possibilities of distributing the k projects to the n students, as well the number of possible solutions, in the below form:
For n=3 (students), k=2 (projects) There are 6 solutions:
1.Tom - “Java Animation”, Jane-“Java Animation”, Kate - “3D Game”
2.Tom - “Java Animation”, Jane - “3D Game”, Kate- “Java Animation”
3.Tom-“Java Animation”,Jane-“3D Game”,Kate-“3D Game”
4.Tom - “3D Game”, Jane - “Java Animation”, Kate –“Java Animation”
5.Tom - “3D Game”, Jane - “Java Animation”, Kate – “3D Game”
6.Tom - “3D Game”, Jane - “3D Game”, Kate –“Java Animation
I've manged to generate the number of solutions,but I don't know if I should use struct in order to display each solution or how I should do it.Here's my code so far: