using System.Collections.Generic;
public class StudentRecord : IComparable<StudentRecord>
private Dictionary<string, string> courses = new Dictionary<string, string>();
public StudentRecord(string name){
public void Add(string coursename,string grade){
courses.Add(coursename,grade);
public double CalculateGPA(){
public static void Main() {
List<StudentRecord> Students = new List<StudentRecord>();
StudentRecord John = new StudentRecord("John");
StudentRecord Mary = new StudentRecord("Mary");
StudentRecord Joe = new StudentRecord("Joe");
StudentRecord Susie = new StudentRecord("Susie");
John.Add("IERG3080","B");
John.Add("IERG3300","A");
Mary.Add("IERG3080","A");
Mary.Add("IERG3300","A");
Mary.Add("GEEC1000","B");
Susie.Add("CSCI2100","C");
Susie.Add("IERG2051","F");