WEEK07
June 21 and June 23
This page contains lectures, examples and assignments for
the class "Introduction to Scientific Programming".
Lectures:
Examples:
-
bubblesort.cpp,
a function which can be used to bubblesort an array.
-
bubblesort_test.cpp,
a program which demonstrates the bubblesort algorithm.
-
fsu_football_2010.txt,
attendance records for FSU football games in the 2010 season.
-
insert_sort.cpp,
a program which demonstrates insertion sort.
The user types in integers, one at a time, and the program
immediately inserts the new item into the sorted array.
-
mona.cpp,
a partial program, which can read the Mona Lisa information from
mona.pgm; the student must add commands to create a histogram
of the number of occurrences of gray values in the ranges 0 to 15,
16 to 31, 32 to 47, and so on through 240 to 255.
-
mona_2d.cpp,
a program, which reads the Mona Lisa information from
mona.pgm into a 2D array.
-
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 image of the Mona Lisa.
-
read_array.cpp,
a program which reads the entries of an array from an interactive user.
Assignments:
-
In class exercise #7, on Tuesday: Histogram the Mona Lisa.
-
Program Homework #5 is due on Thursday. Please mail your program and output
to Detelina.
-
Program Homework #6, to be assigned on Thursday, will be due in TWO WEEKS,
that is, on July 7th. This is because June 30th is the date for the midterm exam.
You can go up one level to
the ISC course page.
Last revised on 23 June 2011.