Program 17
Program 17
using System.Collections.Generic;
class StudentRecords
{
private Dictionary<string, string> studentData = new Dictionary<string,
string>();
private List<string> studentNames = new List<string>();
class Program
{
static void Main()
{
StudentRecords records = new StudentRecords();
records.AddStudent("John", "A");
records.AddStudent("Alice", "B");
records["Alice"] = "A+";
Console.WriteLine("Alice's updated Grade: " + records["Alice"]);
}
}