public static IScored BestOfTwo(IScored Assign1, IScored Assign2) { var score1 = Assign1.Score / Assign1.MaximumScore; var score2 = Assign2.Score / Assign2.MaximumScore; if (score1 > score2) { return(Assign1); } return(Assign2); }
public static IScored BestOfTwo(IScored Assignment1, IScored Assignment2) { var score1 = Assignment1.Score / Assignment1.MaximumScore; var score2 = Assignment2.Score / Assignment2.MaximumScore; if (score1 > score2) { return Assignment1; } else { return Assignment2; } }
public static IScored BestOfTwo(IScored assignment1, IScored assignment2) { var score1 = assignment1.Score / assignment1.MaximumScore; var score2 = assignment2.Score / assignment2.MaximumScore; if (score1 > score2) { return(assignment1); } else { return(assignment2); } }
public static IScored BestOfTwo(IScored Assignment1, IScored Assigment2) { var score1 = Assignment1.Score / Assignment1.MaximumScore; var score2 = Assigment2.Score / Assigment2.MaximumScore; //if (score1 > score2) //{ // return Assignment1; //} //else //{ // return Assigment2; //} return(score1 > score2 ? Assignment1 : Assigment2); }