Professional Documents
Culture Documents
Computer Science 1 (1E3) : Objectives
Computer Science 1 (1E3) : Objectives
Computer Science 1 (1E3) : Objectives
1 Introduction 1 1 Introduction 2
1 Introduction 3 1 Introduction 4
1
Programming and Problem Solving An Algorithm
Determine how many times a name occurs in a list of
Algorithm names.
A sequence of precise instructions which 1. Input the list of names.
leads to a solution
2. Input the name being checked
Program 3. Set a counter to zero.
An algorithm expressed in a language the 4. For each name on the list
computer can understand If the list name is the same as the name being
checked
Add 1 to the counter.
5. Output the counter value as the answer.
1 Introduction 5 1 Introduction 6
2
Other things you might learn Practicalities
Computers are “stupid”. Lectures
Wed 12-1 Hamilton 3 theatre
Programming is easy, a bit tedious Fri 9-10 Ed Burke, Arts block
Problem solving is challenging and fun. Labs
Some things can’t be computed. Start week 3 (20th October)
1.5 hours per week
Attendance compulsory
Coursework
Completed in labs
Contributes 20% to overall mark.
Marks posted weekly
1 Introduction 9 1 Introduction 10
1 Introduction 11 1 Introduction 12
3
Environment Next …
iMacs running Mac OS X “Jaguar” Next day we’ll look briefly at
SubEthaEdit text editor Computer architecture
To type in and edit your program files Programming languages
Terminal utility Problem-solving.
Gives UNIX interface
“make myprog.cpp”
Make compiles (and link) programs
“./myprog”
To run the compiled program myprog
1 Introduction 13 1 Introduction 14