Outline

Day 1

  • Introduction (instructor, students), why this course
  • Algorithms

Day 2

  • Computer hardware (hard drive, RAM, processor)
  • Machine language, compilers, programming languages
  • Output
  • Include files
  • DOS primer (Run cmd, cd, dir, run program)
  • Compilation process

Day 3

  • Variables
  • Naming conventions
  • Binary and hexadecimal numbers
  • Data types (int, float, double, char)
  • Assignment
  • Variable initialization
  • Syntax (semicolon, braces, brackets, single and double quotations)
  • Mathematical operators
  • Precedence
  • Casting
  • Escape sequences

Day 4

  • Coding style / code readability
  • Comments
  • Input
  • Conditional statements
  • Relational operators
  • Logical operators

Day 5

  • Loops
  • Nesting
  • Constants

Day 6

  • Arrays
  • Errors, bugs, debugging and testing.

Day 7

  • Strings
  • String manipulation

Day 8

  • Sorting
  • Functions
  • Recursion
  • Stacks and queues
  • Multiple source file projects
  • Scope

Day 9

  • File I/O

Day 10

  • Command line arguments
  • Structures

Day 11

  • Pointers
  • Multidimensional arrays
  • Passing by reference

Day 12

Questions

  • What is a compiler? What is the function of a compiler? What does the compiler do?
  • Is C case sensitive?
  • Write a C program that would reverse the digits of an intiger number of any size entered by the user.