Question: I need a LING expression in c# for Group students by their average test score bracket and order DESCENDING o Test score brackets are in
I need a LING expression in c# for
Group students by their average test score bracket and order DESCENDING
o Test score brackets are in multiples of 10
50, 60, 70, 80, 90, 100
To calculate o get an average divide by 10 o truncate to the nearest integer (hint, use a cast)
multiply by 10.
You will need to use an Anonymous Type for this task
Each student and their test score average must be output.
The student list looks like this:


public class Student { 50 references public string Name { get; set; } // student name 51 references public int[] Scores { get; set; } // test scores // constructor - just need 4 test scores for this example 45 references public Student() { } // ToString() override allows for easier display of student and their scores O references override public string ToString() { return $"Name: {Name}, Scores: {Scores[0]}, {Scores[1]}, {Scores[2]}, {Scores[3]}"; } List
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
