예제 #1
0
    static void Main(string[] args)
    {
        GradeBook Philosophy = new GradeBook("Philosophy", 69.42);

        Philosophy.DisplayMessage();
        Philosophy.SetMarks(42);
        Philosophy.DisplayMessage();
        Console.ReadKey();
    }
예제 #2
0
    // Main method begins program execution
    public static void Main(string[] args)
    {
        // create GradeBook object
        GradeBook gradeBook1 = new GradeBook(
           "CS101 Introduction to C# Programming", "Sam Smith");

        gradeBook1.DisplayMessage(); // display welcome message

        Console.WriteLine("\nChanging instructor name to Judy Jones\n");
        gradeBook1.InstructorName = "Judy Jones";

        gradeBook1.DisplayMessage(); // display welcome message
    } // end Main
    public static void Main(String[] args)
    {
        GradeBook myGradeBook = new GradeBook("CS101 introduction to Programming", "Professor Smith" );

        myGradeBook.DisplayMessage();
        Console.Read();
    }
예제 #4
0
    // Main method begins program execution
    public static void Main( string[] args )
    {
        // Create a GradeBook object and assign it to myGradeBook (variable??)
        GradeBook myGradeBook = new GradeBook();

        // Call myGradeBook's DisplayMessage Method
        myGradeBook.DisplayMessage();
    }
예제 #5
0
    // Main method begins program execution
    public static void Main(string[] args)
    {
        // create a GradeBook object and assign it to myGradeBook
        GradeBook myGradeBook = new GradeBook();

       // call myGradeBook's DisplayMessage method
       myGradeBook.DisplayMessage();
     }  // end Main
예제 #6
0
    // Main method begins program execution
    public static void Main( string[] args )
    {
        // create a GradeBook object and assign it to myGradeBook
          GradeBook myGradeBook = new GradeBook();

          // call myGradeBook's DisplayMessage method
          myGradeBook.DisplayMessage();
    }
예제 #7
0
        public static void Main(string[] args )
        {
            GradeBook myGradeBook = new GradeBook(
                "CS101 Intro to C#");

            myGradeBook.DisplayMessage();
            myGradeBook.DetermineClassAverage();
            Console.ReadLine();
        }
    //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
    }
예제 #9
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
    }
예제 #10
0
    // Main method begins application execution
    public static void Main( string[] args )
    {
        // one-dimensional array of student grades
          int[] gradesArray = { 87, 68, 94, 100, 83, 78, 85, 91, 76, 87 };

          GradeBook myGradeBook = new GradeBook(
         "CS101 Introduction to C# Programming", gradesArray );
          myGradeBook.DisplayMessage();
          myGradeBook.ProcessGrades();
    }
예제 #11
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
예제 #12
0
    public static void Main(string[] args)
    {
        GradeBook myGradeBook = new GradeBook();

        Console.WriteLine("Initial course name is: '{0}'\n", myGradeBook.CourseName);
        Console.WriteLine("Please enter course name:");
        myGradeBook.CourseName = Console.ReadLine();
        Console.WriteLine();
        myGradeBook.DisplayMessage();
    }
예제 #13
0
        static void Main(string[] args)
        {
            GradeBook myGradeBook  = new GradeBook();
            GradeBook myGradeBook2 = new GradeBook("Introduction to Java Programming", "Kevin G");

            myGradeBook2.InstructorName = "Mozilla F. Fox";
            myGradeBook2.CourseName     = "Learn Rust Programming";

            myGradeBook2.DisplayMessage();
        }
예제 #14
0
    // Main method begins app execution
    static void Main()
    {
        // one-dimensional array of student grades
        int[] gradesArray = { 87, 68, 94, 100, 83, 78, 85, 91, 76, 87 };

        var myGradeBook = new GradeBook(
            "CS101 Introduction to C# Programming", gradesArray);

        myGradeBook.DisplayMessage();
        myGradeBook.ProcessGrades();
    }
예제 #15
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.InputGrades();        // read grades from user
        myGradeBook.DisplayGradeReport(); // display report based on grades
    } // end Main
예제 #16
0
    // Main method begins program execution
    public static void Main(string[] args)
    {
        // create a GradeBook object and assign it to myGradeBook
        GradeBook myGradeBook = new GradeBook();

        // call myGradeBook's DisplayMessage method
        myGradeBook.DisplayMessage();

        Console.WriteLine("\nTecle Enter para terminar");
        Console.Read();
    } // end Main
예제 #17
0
    public static void Main(string[] args)
    {
        GradeBook gradeBook1 = new GradeBook("CS101 Introduction to C# Programming!", "Sylvester Stallone");
        GradeBook gradeBook2 = new GradeBook("CS102 Introduction to C# Programming!", "Ralph Bohner");

        gradeBook1.DisplayMessage();
        Console.WriteLine();
        Console.WriteLine();
        gradeBook2.DisplayMessage();

        Console.ReadLine();
    }
    // Main method begins program execution
    public static void Main(string[] args)
    {
        // create GradeBook object
        GradeBook gradeBook1 = new GradeBook( // invokes constructor
           "CS101 Introduction to C# Programming", "Evgeni");
        GradeBook gradeBook2 = new GradeBook( // invokes constructor
           "CS102 Data Structures in C#", "Krustev");

        // display initial value of courseName for each GradeBook
        gradeBook1.DisplayMessage();
        Console.WriteLine();
        gradeBook2.DisplayMessage();
    }
예제 #19
0
    // Main method begins application execution
    public static void Main(string[] args)
    {
        // one-dimensional array of student grades
        int[] gradesArray = { 87, 68, 94, 100, 83, 78, 85, 91, 76, 87, 82, 90 };

        GradeBook myGradeBook = new GradeBook("CS101 Introduction to C# Programming", gradesArray);

        myGradeBook.DisplayMessage();
        myGradeBook.ProcessGrades();

        Console.WriteLine("\nTecle qualquer tecla para finalizar...");
        Console.ReadKey();
    } // end Main
예제 #20
0
    // Main method begins program execution
    public static void Main( string[] args )
    {
        // create a GradeBook object and assign it to myGradeBook
          GradeBook myGradeBook = new GradeBook();

          // prompt for and input course name
          Console.WriteLine( "Please enter the course name:" );
          string nameOfCourse = Console.ReadLine(); // read a line of text
          Console.WriteLine(); // output a blank line

          // call myGradeBook's DisplayMessage method
          // and pass nameOfCourse as an argument
          myGradeBook.DisplayMessage( nameOfCourse );
    }
예제 #21
0
    // Main method begins program execution
    public static void Main(string[] args)
    {
       // create a GradeBook object and assign it to myGradeBook
       GradeBook myGradeBook = new GradeBook();

        // prompt for and input course name
       Console.WriteLine( "Please enter the course name:" );
        string nameOfCourse = Console.ReadLine();  // read a line of text
       Console.WriteLine();  // output a blank line

       // call myGradeBook's DisplayMessage method
        // and pass nameOfCourse as an argument
        myGradeBook.DisplayMessage( nameOfCourse );
    }  // end Main
예제 #22
0
    public static void Main(string[] args)
    {
        // initialize reference using constructor
          GradeBook gradeBook = new GradeBook("COP 2360  C# Programming", "April Graves");

          // display gradeBook with get property
          Console.WriteLine("gradeBook.CourseName value is: {0}", gradeBook.CourseName);
          Console.WriteLine("gradeBook.CourseInstructor value is: {0}", gradeBook.CourseInstructor);
          Console.WriteLine();

          // display gradeBook with method call
          gradeBook.DisplayMessage();

          // Freeze console window
          Console.ReadLine();
    }
예제 #23
0
    // Main method begins program execution
    public static void Main(string[] args)
    {
        /*// create GradeBook object
         * GradeBook gradeBook1 = new GradeBook("CS101 Introduction to C# Programming");
         * GradeBook gradeBook2 = new GradeBook("CS102 Data Structures in C#");
         *
         * // display initial value of courseName for each GradeBook
         * Console.WriteLine("gradeBook1 course name is: {0}",gradeBook1.CourseName);
         * Console.WriteLine("gradeBook2 course name is: {0}",gradeBook2.CourseName); */


        GradeBook gradeBook1 = new GradeBook("CS101 Introduction to C# Programming", "Ivanov");

        gradeBook1.DisplayMessage();
        Console.WriteLine(gradeBook1.GetGradeBookTitleCourseStart());
    }
    // Main method begins program execution.
    public static void Main(string[]args)
    {
        // create a GradeBook object and assign it to myGradeBook
           GradeBook myGradeBook = new GradeBook("CS101 Introduction to C# Programming", "April Graves");

           // display initial value of CourseName
           Console.WriteLine("Initial course name is: '{0}'", myGradeBook.CourseName);

           // prompt for and input course name
           Console.WriteLine("Please enter the course name:");
           myGradeBook.CourseName = Console.ReadLine(); // set CourseName
           Console.WriteLine(); // output a blank line

           // display welcome message after specifiying course name
           myGradeBook.DisplayMessage();
    }
예제 #25
0
    // Main method begins program execution
    public static void Main( string[] args )
    {
        // create a GradeBook object and assign it to myGradeBook
          GradeBook myGradeBook = new GradeBook();

          // display initial value of CourseName
          Console.WriteLine( "Initial course name is: '{0}'\n",
         myGradeBook.CourseName );

          // prompt for and read course name
          Console.WriteLine( "Please enter the course name:" );
          myGradeBook.CourseName = Console.ReadLine(); // set CourseName
          Console.WriteLine(); // output a blank line

          // display welcome message after specifying course name
          myGradeBook.DisplayMessage();
    }
예제 #26
0
    // Main method begins program execution
    public static void Main(string[] args)
    {
        // create a GradeBook object and assign it to myGradeBook
        GradeBook myGradeBook = new GradeBook();

        // display initial value of CourseName
        Console.WriteLine("Initial course name is: '{0}'\n",
                          myGradeBook.CourseName);

        // prompt for and read course name
        Console.WriteLine("Please enter the course name:");
        myGradeBook.CourseName = Console.ReadLine(); // set CourseName
        Console.WriteLine();                         // output a blank line

        // display welcome message after specifying course name
        myGradeBook.DisplayMessage();
    } // end Main
예제 #27
0
    // Main method begins program execution
    public static void Main( string[] args )
    {
        // Create a GradeBook object and assign it to myGradeBook (variable??)
        GradeBook myGradeBook = new GradeBook();

        // Prompt for input course name

        Console.WriteLine("Please enter course name: ");

        string nameOfCourse = Console.ReadLine(); // read a line of text and store it as the course name.

        Console.WriteLine();

        myGradeBook.DisplayMessage( nameOfCourse );
        // Call myGradeBook's DisplayMessage Method
           // myGradeBook.DisplayMessage();
    }
예제 #28
0
    // Main method begins program execution
    public static void Main(string[] args)
    {
        // create GradeBook object
        GradeBook gradeBook1 = new GradeBook( // invokes constructor
            "CS101 Introduction to C# Programming", "prof.Roberto");
        GradeBook gradeBook2 = new GradeBook( // invokes constructor
            "CS102 Data Structures in C#", "prof.Namateet");

        // display initial value of courseName for each GradeBook
        Console.WriteLine("gradeBook1 course name is: {0}",
                          gradeBook1.CourseName);
        // display welcome message after specifying course name
        gradeBook1.DisplayMessage();

        // display initial value of courseName for each GradeBook
        Console.WriteLine("\ngradeBook2 course name is: {0}",
                          gradeBook2.CourseName);
        // display welcome message after specifying course name
        gradeBook2.DisplayMessage();
    } // end Main
예제 #29
0
    // Main method begins app execution
    static void Main()
    {
        // rectangular array of student grades
        int[,] gradesArray = { {  87,  96,  70 },
                               {  68,  87,  90 },
                               {  94, 100,  90 },
                               { 100,  81,  82 },
                               {  83,  65,  85 },
                               {  78,  87,  65 },
                               {  85,  75,  83 },
                               {  91,  94, 100 },
                               {  76,  72,  84 },
                               {  87,  93,  73 } };

        GradeBook myGradeBook = new GradeBook(
            "CS101 Introduction to C# Programming", gradesArray);

        myGradeBook.DisplayMessage();
        myGradeBook.ProcessGrades();
    }
예제 #30
0
    public static void Main(string[] args)
    {
        //Create a GradeBook object and assign it to myGradeBook
          GradeBook myGradeBook = new GradeBook();

          //Prompt for course name
          Console.WriteLine("please enter course name");
          string nameOfCourse = Console.ReadLine(); //Reads a line puts it in nameOfCourse
          Console.WriteLine(""); // Outputs Blank Line

          // call myGradeBook's DisplayMessage method and pass nameOfCourse as an argument

          myGradeBook.key = 1995;

          myGradeBook.DisplayMessage(nameOfCourse);

          //Print a blank line, tell them to press enter, read return to continue
          Console.WriteLine("\n");
          Console.WriteLine("Press Enter To Close");
          nameOfCourse = Console.ReadLine();
    }
예제 #31
0
    public static void Main(string[] args)
    {
        //Create a GradeBook object and assign it to myGradeBook
        GradeBook myGradeBook = new GradeBook();

        //Prompt for course name
        Console.WriteLine("please enter course name");
        string nameOfCourse = Console.ReadLine(); //Reads a line puts it in nameOfCourse

        Console.WriteLine("");                    // Outputs Blank Line

        // call myGradeBook's DisplayMessage method and pass nameOfCourse as an argument

        myGradeBook.key = 1995;

        myGradeBook.DisplayMessage(nameOfCourse);

        //Print a blank line, tell them to press enter, read return to continue
        Console.WriteLine("\n");
        Console.WriteLine("Press Enter To Close");
        nameOfCourse = Console.ReadLine();
    } //Ends Main
예제 #32
0
   // Main method begins program execution
   public static void Main()
   {
      int[,] gradesArray = {{ 87, 96, 70},
                            { 68, 87, 90},
                            { 94, 100, 90},
                            { 100, 81, 82},
                            { 83, 65, 85},
                            { 78, 87, 65},
                            { 85, 75, 83},
                            { 91, 94, 100},
                            { 76, 72, 84},
                            { 87, 93, 73}
                           };

      GradeBook myGradeBook = new GradeBook("C# Programming", gradesArray);

      myGradeBook.DisplayMessage();
      myGradeBook.ProcessGrades();

      Console.ReadLine();
      
   }// end Main
예제 #33
0
    // Main method begins application execution
    public static void Main(string[] args)
    {
        // rectangular array of student grades
        int[ , ] gradesArray = { {  87,  96,  70 },
                                 {  68,  87,  90 },
                                 {  94, 100,  90 },
                                 { 100,  81,  82 },
                                 {  83,  65,  85 },
                                 {  78,  87,  65 },
                                 {  85,  75,  83 },
                                 {  91,  94, 100 },
                                 {  76,  72,  84 },
                                 {  87,  93,  73 } };

        GradeBook myGradeBook = new GradeBook(
            "CS101 Introduction to C# Programming", gradesArray);

        myGradeBook.DisplayMessage();
        myGradeBook.ProcessGrades();

        Console.WriteLine("\nTecle qualquer tecla para finalizar...");
        Console.ReadKey();
    } // end Main