CISC 1115 Course Syllabus and Homework Assignments

Textbook: Starting Out With Java, 6th ed.

By - Tony Gaddis



Topic 1: First Java Program

            - computer concepts (hardware, software, programs)                                    (pp. 1-6)

            - sample Java programs

            - the Java programming language                                                                   (pp. 6-21)

            - structure of a simple Java program                                                              (pp. 27-32)

            - the declaration statement                                                                              (pp. 39)

            - the assignment statement                                                                             (pp. 39)

            - primitive data types                                                                                      (pp. 44-54)

            - the println() and print() methods                                                                  (pp. 33-41)

            - arithmetic operators (arithmetic expressions)                                              (pp. 54-57)

            - relational operators (boolean expressions)                                                   (pp. 113-114)

            - A complete Java program

            - iterative operations

            - for loops (for statements)                                                                             (pp. 207-216)

            - increments and decrements                                                                          (pp. 189-193)

            HW: Topic 1Program: Print 1 to 100


Topic 2: Evaluating an Expression

            - real numbers                                                                                                 (pp. 47-49)

            - data types float and double                                                                           (pp. 47-49)

            - writing complex arithmetic expressions

            - arithmetic operator precedence and associativity                                         (pp. 57-59)

            - if statement                                                                                                   (pp. 111-121)

            - printing real numbers                                                                                   (pp. 164-178)

            - creating a readable table                                                                               (pp. 164-178)

            - formatted output (precision, width, justification, tabs)                                (pp. 164-178)

            - escape sequences                                                                                          (pp. 36-38)

            - combined assignment operators                                                                   (pp. 63-64)

            - operator precedence (arithmentic, relational, assignment)                           (pp. 144)

            - mixed mode arithmetic                                                                                (pp. 65-68)

            - Math class methods                                                                                      (pp. 62-63)

            - data type char                                                                                               (pp. 50-52)

            - the String class                                                                                             (pp. 70-75)

            - program debugging

            - files                                                                                                              (pp. 230-237)

            - output files using PrintWriter (or PrintStream) objects                                (pp. 230-237)

            HW: Topic 2 Programming Assignment: Formula


Topic 3: Reading a Set of Data

            - while loop (while statement)                                                                        (pp. 193-203)

            - using a sentinel                                                                                             (pp. 216-221)

            - interactive data entry                                                                                    (pp.. 84-98)

            - the Scanner class (Scanner class methods)                                                  (pp. 84-91)

            - dialog boxes                                                                                                 (pp. 92-98)

            - methods for converting strings to numbers                                                  (pp. 95-98)

            - String.format() method                                                                                (pp.175-177)

            - if-else statement                                                                                           (pp.121-123)

            - the conditional operator                                                                               (pp.152-154)

            - input files                                                                                                     (pp. 237-248)

            HW: Topic 3 Program: Exam Statistics


Topic 4: Summation, Constants, Nested Loops

            - summation loop                                                                                            (pp.216-220)

            - declaring a loop index                                                                                  (pp. 211-212)

            - named constants                                                                                           (pp. 69-70)

            - user controlled for loop                                                                                (pp. 212-213)

            - nested for loops                                                                                            (pp. 221-229)

 

Topic 5; Methods (Menber Functions)                                                                       (pp. 269-307)

            - value-return methods

            - local variables

            - void methods

            - parameterless methods

            - pass by value

            - pass by reference of non-primitive objects

            - file i/o within a method

            HW: Topic 5 Program: Bowling Scores


Examination #1 exam1 outline


Topic 6: Control Structures

            - detecting the end of a data set (user response methods)                               (pp. 204-206)

            - do-while loops                                                                                              (pp. 204-206)

            - logical operators                                                                                           (pp. 137-145)

            - nested if statements                                                                                      (pp. 124-137)

            - switch statement                                                                                           (pp. 154-164)

            - continue and break statements                                                                     (pp. 229)

            - precedence of operators                                                                               (pp.143-144)

            - Boolean expressions                                                                                     (pp. 137-144)

            - data type boolean                                                                                         (pp.50)

            HW: Topic 6 Program: Calculator


Topic 7: Arrays

            - one-dimensional arrays                                                                                (pp. 405-424)

            - passing arrays to methods                                                                            (pp. 424-428)

            - array algorithms and operations                                                                   (pp. 428-441)

            - returning arrays from methods                                                                     (pp. 441-443)

            - detecting the end of a file                                                                             (pp. 241-244)

            - two-dimensional arrays                                                                                (pp. 452-463)

            - arrays with three or more dimensions                                                          (pp. 464)

            HW: Topic 7 Program: Bank Accounts

            HW: Topic 7 Program: Count Zeros


Topic 8: The String Class

            - String class objects and methods                                                                  (pp. 70-75)

            - additional String methods                                                                            (pp. 568-582)

            - the String indexOf() method                                                                        (pp. 572-574)

            - the StringBuilder Class                                                                                (pp. 582-592)

            - StringBuilder methods                                                                                 (pp. 584-587)

            - the Scanner nextLine() method                                                                    (pp. 86)

            - reading lines from a file using the nextLine() method                                 (pp. 238-241)

            - String arrays                                                                                                 (pp. 443-446)

            - tokenizing Strings (using method split())                                                     (pp. 593-597)

            HW: Topic 8 Program: Word Count

 

Lecture Notes: Number Systems                                                                                (lecture notes)


Examination #2 exam2 outline


Topic 9: Sorting and Searching

            - linear (selection) sort                                                                                    (pp. 465-468)

            - bubble sort                                                                                                    (lecture notes)

            - linear search                                                                                                 (pp. 449-451)

            - binary search                                                                                                (pp. 468-470)

            HW: Topic 9 Program: Donations


Topic 10: A First look at Classes

            - objects and classes                                                                                      (pp. 319-326)

            - writing a simple class                                                                                   (pp. 326-343)

            - instance fields and methods                                                                         (pp. 343-347)

            - passing objects as arguments                                                                       (pp. 360-362)

            - StringTokenizer class                                                                                   (pp. 593-597)

            - converting Strings to numbers                                                                     (pp. 95-98)


Final Examination