CS-0007 Syllabus

Lecture Topics

PowerPoint
Slides

Course Introduction

Course Introduction Slides

Chapter 1: Introduction

Chapter 01 Slides

Chapter 2: Java Fundamentals

 

Chapter 02 Slides

Chapter 3: Decision Structures

  • The IF structure (next class) 
  • Logical Operators 
    • Real World Examples 
      • AND operator (&&) 
      • OR operator (||) 
      • NOT operator (!)  
      • True/False Tables 
    • Programming Examples  
    • Logic Operators Hands-on 
  • Switch Structures  
    • General Form  
    • Comparison with the IF structure  
    • The importance of the BREAK  
    • The importance of the DEFAULT  
  • Number Formatting  
    • The problem of not having a formatted number in the program output  
    • Java API DecimalFormat class  
      • How to create an object of the DecimalFormat  
      • How to define the format style  
      • Examples  
      • Hints for aligning numbers on a restaurant bill  
  • Magic Numbers and Enum 
    • What is a magic number  
    • Why is magic number bad  
    • Ways of avoiding magic numbers  
      • Creating constant (final) variables  
      • Creating enumerators 
    • Magic Num and Enum Hands-on
Chapter 03 Slides

Chapter 4: Loops and Text Files

Loops

Processing Text Files 

  • Reading Text Files 
    • The mechanics of reading/writing data into a file - Real World Example  
    •  File Types 
      • Binary files 
      • Text files 
    • Reading files 
      • File Class 
      • Scanner Class 
    • Reading Files Hands-on  
      • Sample code  
      • How to read all the contents of a text file  
  • Writing Text Files (watch for next class)
    • The PrintWriter class
    • Creating a new output file
    • Appending data to an existing output file
    • Sample code

Java Exceptions

 

 

Chapter 04 Slides

Chapter 7: Arrays

  • Introduction to Arrays
    • Real World Example
    • Programming World
      • Creating 1D arrays
      • Accessing a single data from a 1D array
      • How array data is stored in memory
      • Creating and accessing 2D arrays
  • Multi-dimensional Arrays
    • 3D Arrays
    • 4D Arrays and beyond
    • Slicing ND arrays into an N(D-1) array
  • Array Manipulation
    • Copying an array, the wrong way
    • Copying an array, the right way
    • Increasing an array size (done)
  • Array Hands-on / Part 1
    • Creating an array
    • Adding Values into an Array
    • Looping over an array data
  • Arrays Hands-on / Part 2
    • Increasing an array size
    • Copying array contents
    • Resetting an array
    • Sorting Elements in an Array
    • Creating Multi-dimensional Arrays
Chapter 07 Slides

Chapter 5: Methods

 

Chapter 05 Slides

 Chapter 15: Recursion

 Chapter 15 Slides