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:

I need a LING expression in c# for Group students by their

average test score bracket and order DESCENDING o Test score brackets are

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 students = new List { new Student { Name = "Michael", Scores = new int[] { 94, 92, 91, 91 } }, new Student { Name = "Isabelle", scores = new int[] { 66, 87, 65, 93, 86} }, new Student { Name = "Chastity", Scores = new int[] { 76, 61, 73, 66, 54} }, new Student { Name = "Chaim", Scores = new int[] { 94, 55, 82, 62, 52} }, new Student { Name = "Patience", Scores = new int[] { 91, 79, 58, 63, 55} }, new Student { Name = "Echo", Scores = new int[] { 74, 85, 73, 75, 86} }, new Student { Name = "Pamela", Scores = new int[] { 73, 64, 53, 72, 68} }, new Student { Name = "Anne", Scores = new int[] { 78, 96, 52, 79, 60} }, new Student { Name = "Fuller", Scores = new int[] { 59, 68, 88, 85, 76} }, new Student { Name = "Cameron", Scores = new int[] { 70, 73, 75, 51, 98} }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!