//Método principal
    public static void Main(string[] args)
    {
        // crea un objeto GradeBook y lo asigna a myGradeBook
          GradeBook myGradeBook = new GradeBook(// invoca al constructor
         "curso de C#");

          myGradeBook.DisplayMessage(); // muestra mensaje de bienvenida
          myGradeBook.DetermineClassAverage(); // encuentra la media
    }
Пример #2
0
        public static void Main(string[] args )
        {
            GradeBook myGradeBook = new GradeBook(
                "CS101 Intro to C#");

            myGradeBook.DisplayMessage();
            myGradeBook.DetermineClassAverage();
            Console.ReadLine();
        }
Пример #3
0
    public static void Main(string[] args)
    {
        // create GradeBook object myGradeBook and
        // pass course name to constructor
        GradeBook myGradeBook = new GradeBook(
            "CS101 Introduction to C# Programming");

        myGradeBook.DisplayMessage();        // display welcome message
        myGradeBook.DetermineClassAverage(); // find average of 10 grades
    } // end Main
Пример #4
0
    public static void Main( string[] args )
    {
        // create GradeBook object myGradeBook and
          // pass course name to constructor
          GradeBook myGradeBook = new GradeBook(
         "CS101 Introduction to C# Programming" );

          myGradeBook.DisplayMessage(); // display welcome message
          myGradeBook.DetermineClassAverage(); // find average of 10 grades
    }