public static string Welcome()
return "Welcome to Toi Ohomai\n" + "---------------------";
public static string Continue()
return "\nPress Enter to continue ...";
public static string PromptName(string name)
return "Please enter your " + name + " name :";
public static string Name()
return "Your name is : ";
public static string ID()
return "Your student id is : ";
public Student(string _fname, string _lname)
public string Fname {get; set;}
public string Lname {get; set;}
return Fname + " " + Lname;
public string StudentID()
Random rnd = new Random();
return rnd.Next(1000, 9999).ToString();
public static string ShowName(string fullname)
return Messages.Name() + fullname;
public static string ShowID(string id)
return Messages.ID() + id;
public static void Main()
Console.WriteLine(Messages.Welcome());
Student newstudent = new Student();
Console.Write(Messages.PromptName("first"));
newstudent.Fname = Console.ReadLine();
Console.Write(Messages.PromptName("last "));
newstudent.Lname = Console.ReadLine();
Console.WriteLine(Messages.Continue());
Console.WriteLine(Messages.Welcome());
Console.WriteLine(InfoOut.ShowName(newstudent.FullName()));
Console.WriteLine(InfoOut.ShowID(newstudent.StudentID()));