WEEK01
May 10 and May 12
This page contains lectures, examples and assignments for week 1
of the class "Introduction to Scientific Programming".
Lectures
Example Programs:
-
add_ints.cpp, a program which gets two integers from the user and adds them.
-
guess.cpp, a program which asks you to guess its secret number.
-
hello.cpp, a program which says "Hello, world!".
-
hello_oops.cpp, a version of the hello program with some mistakes in it.
-
mandel_ppm.cpp, a program which prints out a PPM graphics image of the
Mandelbrot set.
-
mandel_txt.cpp, a program which prints out a text image of the
Mandelbrot set.
-
mult_floats.cpp, a program which gets two real numbers from the user and multiplies them.
Assignments:
-
Reading: Chapter 1, Sections 1.7, 1.8, 1.14, 1.16.
-
The in-class assignment will be done on Thursday.
It is described in the notes for lecture 2.
-
There is no programming assignment this week!
You can go up one level to
the ISC course page.
Last revised on 05 May 2011.