Daniel- Marin

Greenhorn
+ Follow
since Apr 27, 2019
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Daniel- Marin

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:



4 years ago