Hello. I am struggling with making an equation for combination of groups. There
ID: 3632696 • Letter: H
Question
Hello. I am struggling with making an equation for combination of groups.There will be high school debate. 10 high school teams compete only on Saturday for "usually" 10 weeks long. Each team can only compete twice a week (against one team in the morning and another team in the afternoon). For example, if there is team A, team B, team C, team A competes against team B in the morning and team A competes against team C in the afternoon. team A cannot compete against team B and team C in next week because they have already competed. If a team cannot compete due to any event, that team has to compete after 10 weeks are over, and one extra week needs to be added.
Please help me to find out how to code this to get distinct and not allowed to repeat the same combination.
Thank you very much for your time!!!!
Explanation / Answer
hey, here are 3 java files.. compile them and run the 1st one.. ############### #####file 1##### ###debate.java### public class debate { private static final int numOfGroup = 10; private static final int numOfWeek = 10; private static final int[] problem = {-1,-1,-1,-1,5,-1,-1,-1,-1,-1}; public static void main(String[] args) { groups grps[] = new groups[numOfGroup]; for(int i=0; iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.