WEEK08
June 28 and June 30
This page contains lectures, examples and assignments for
the class "Introduction to Scientific Programming".
Lectures:
Examples:
-
gettysburg.txt,
the text of the Gettysburg Address.
-
longest_word2.cpp,
a program which reads text data and reports the longest word,
using C++ strings.
-
mona.pgm,
a PGM (Portable Gray Map) file of the Mona Lisa,
a text file which can be read by a C++ program using cin.
-
mona.png,
a PNG version.
-
mona_2d.cpp,
a program which reads the Mona Lisa information from
mona.pgm into a 2D array.
-
mona_frame.cpp,
a program which reads the Mona Lisa information from
mona.pgm into a 2D array, creates a "frame" around the face,
and writes it back out.
-
mona_frame.pgm,
a PGM (Portable Gray Map) file of the Mona Lisa,
with the gray scales reversed.
-
mona_frame.png,
a PNG version.
-
mona_reverse.cpp,
a program which reads the Mona Lisa information from
mona.pgm into a 2D array, reverses the gray scales,
and writes it back out.
-
mona_reverse.pgm,
a PGM (Portable Gray Map) file of the Mona Lisa,
with the gray scales reversed.
-
mona_reverse.png,
a PNG version.
Assignments:
-
Program Homework #6, assigned last week, will be due on July 7th.
-
Midterm Exam, Thursday, June 30th.
You can go up one level to
the ISC course page.
Last revised on 30 June 2011.