using System.Collections.Generic;
public string Name { get; set; }
public List<int> Grades { get; set; }
public Student(string name)
Grades = new List<int>();
public void AddGrade(int grade)
public class GradeAnalyzer
private List<int> grades;
public GradeAnalyzer(List<int> grades)
public int GetHighestGrade()
throw new InvalidOperationException("No grades available to find the highest grade.");
public int GetLowestGrade()
throw new InvalidOperationException("No grades available to find the highest grade.");