Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Sami Rollins
srollins@mtholyoke.edu
Fall 2004
Introduction
What is computer programming?
What is this class about?
Who should take this class?
Administrative Information
http://www.mtholyoke.edu/courses/srollins/cs101/
Assignments
Reading Chapter 1
Homework 0 due Monday
Computer Hardware
Main memory
Secondary memory
CPU
Input devices
Output devices
Computer Software
Operating system
Examples?
Applications
Examples?
High-level Machine
Compiler
Code Instructions
Writing Programs
Understand requirements
Write an algorithm
Implement your algorithm
Test your code
What is an algorithm?
A specific set of instructions
return(0);
}
Errors
You WILL have errors in your programs
Syntax Errors
Compiler doesnt understand code
Ex. printf(Hello, world!);
Sometimes error messages dont match problem
Logic
Program runs, but doesnt do what you want
Ex. printf(Hell, world!);
Can be hard to track down