CMSC 120  Computer Science 1

 

Syllabus

 

 

Downloads

          To get a free download of  DrJava

          To get a free Java JDK from Sun Microsystems:  Java SE Downloads  choose the top download button

         

          A Beginner’s Guide to DrJava: Beginner's Guide to DrJava (pdf file -- need Acrobat reader)

 

          Lab Final Programs

          LabFinal

 

Lecture Notes

            Lecture # 1 -- Introduction to Computer Science 1

                        Introduction to Java

                   Getting Started

          Lecture # 2 – Basic Elements of Java   -- Read Malik, Chapter 1 and Chapter 2

                   Assignment Statements

                   Java Primitive Types

                   Primitive types and Casting (example)

 

            Lecture # 3 -- Strings and I/O -- Read Malik, Chapter 3

                   I/O, Strings, and all that

                   Interactive Input and StringTokenizer

                   Formatting Numerical Output  (Taught in Lab.; text pp. 977-980)

                        Conditional Statements (short introduction)

                       

            Lecture # 4 -- Conditional and Iterative Statements

                        Read Malik, Chapter 4, pp 168 - 199; Chapter 5, pp 224 - 240;

                                    Chapter 9, pp 530 - 542

                        Conditional Statements (part 1)

                   Iterative Statements (part 1)

                   Introduction to Arrays

 

          Lecture # 5 -- I/O Streams, File I/O, and StringTokenizer

                   FileIO

 

            Lecture # 6 -- Review (note change in last assignment dates)

                        Exam 1 -- February 26 (see below)

 

            Lecture # 7 -- Introduction to methods and parameters 

                                                Read Chapter 7 pp 359 --  412

                   Methods -- parameters, visibility, & scope

                   Methods and Graphics

                   Drawing Shapes and Text

 

          Lecture # 8 -- Introduction to Object-oriented Programming

                   A First Look at Objects

 

          Lecture # 9 -- The Object-oriented Programming Paradigm                      

                   Object-oriented Programming (part 1)

                   Class Object

            Lecture # 10 – Nested loops and exceptions

                        Exception Handling

                       

Homework Assignments

                   Assignment # 1 (Due Jan. 29)

                   Assignment # 2 (Due Feb. 5)

                   Assignment # 3 (Due Feb. 12)

                   Assignment # 4 (Due Feb. 19, Program due Feb. 26)

                    Assignment # 5 (Due March 26)

                   Assignment # 6 (Due April 2)

                   Assignment # 7 (Due April 9)

                   Assignment # 8 (Due April 16)

 

Exam Review Material

                   Exam1 Extra Credit Questions

                   Review Material for Exam 1 (February 26)

                   Practice writing methods (part 1)

                   Review Material for Exam 2 -- (April 23)

                   Review Material for Final Exam