using System.Collections.Generic;
private static IEnumerable<Note> Notes = new []
new Note("UE09", "Boule Etbill", "P770039", 12),
new Note("UE09", "Gaston Lagaffe", "Q730042", 8),
new Note("UE09", "Benoit Brisfer", "Q590016", 16),
new Note("UE36", "Boule Etbill", "P770039", 11.5),
new Note("UE36", "Gaston Lagaffe", "Q730042", 7),
new Note("UE36", "Benoit Brisfer", "Q590016", 17),
new Note("UE25", "Boule Etbill", "P770039", 15),
new Note("UE25", "Gaston Lagaffe", "Q730042", 12),
new Note("UE25", "Benoit Brisfer", "Q590016", 16),
public static void Main()
IEnumerable<(string Name, double Percent)> ue09Notes = Notes
.Where(n => n.TeachingUnit == "UE09")
.Select(n => (n.StudentName, n.Grade/20.0*100));
foreach(var note in ue09Notes)
Console.WriteLine($"{note.Name} - {note.Percent}");