Linq query to find average – Programming, Pseudocode Example, C# Programming Example