Notice:
(1) CP (in C) course was held on Mondays and Wednesdays, 1:30 to 2:45 pm, initially in Paldal Hall (22), room 328.
(2) As from Monday, 3rd September 2007, the venue of this course has changed into Wonchun Hall, room 540 (days of week, and hours, remain unchanged).
(3) For practical reason, the most essential information covered during our lectures is summarised in these
lecture notes. Thus, these lecture notes are true reflection of everything that was presented, discussed, or
practically exercised during our lectures. In order to run or to download any notes made available here, simply
click on the underlined part
(in green)
of the title of these notes!
(4) These lecture notes follow the course textbook [1] by Behrouz A. Forouzan and Richard F. Gilberg,
"Computer Science, A Structured Programming Approach Using C", Third Edition,
Thomson Course Technology,
2007, ISBN 0-534-49132-4, pb.
In each subsequent lecture note, as well as in each subsequent week, another chapter from this textbook is learned.
However, for the better perception effect, the order of lectures NOT necessarily follow the order od chapters.
(5) For further instructions see the end of this web page.
Course Outline for Sem. 2/2007:
Course Outline (in "Word" .doc format).
Course participants during Sem. 2/2007:
Fig. #1: Here is the group photograph of participants of the CP
course in semester 2, 2007. (Click on this photograph to enlarge it.)
Fig. #2: Here is the photograph of CP class taken
during writing a C program given as their midterm exam.
(Click on this photograph if you wish to to enlarge it.)
Fig. #3: Here is the photograph of CP 2007 course participants
taken together with their Professor by the front of Wonchun Hall
near the middle of semester 2, 2007. (Click on this photograph
if you wish to to enlarge it.)
Captured on this photo in order of the visibility of their faces,
from left to right, are as listed. Front row: (1) Kotelnikov Andrey
(Андрей Котельников),
(2) JWJ, (3) Kwang-Su Kook, (4) DHL, (5) Sofia Rüdger, (6) SHY,
(7) DdM, (8) Han Shin, (9) Kyoung Seop Park;
Back row: (1) Sung Kyung Son, (2) Oh Hyun Seob, (3) Min-Gyu Lee,
(4) Jichan Chong, (5) Jun-Hyung Choi, (6) Jeong-Woo Lee,
(7) Prof. Jan Pajak. Notice, that absent in that day were JBJ
and TSL - but both are visible on the photograph from Fig. #1.
(In Fig. #1 TSL is the first person on the left in the
first row - in a white shirt, while JBJ is the first
person on the left from 2nd row - in a brown shirt.)
Part 1: Lecture Notes (in "*.doc" format for the "WORD XP"):
Week 1 & lecture topic-session 1 (Introduction to programming concept.)
Week 2 & lecture topic-session 3 (Expressions of data and variables - constants, variables, expressions, assignments, data types, algorithms.)
Week 3 & lecture topic-session 4 (Modular programming – functions; Assignment 1 deadline on Wednesday.)
Week 4 & lecture topic-session 5 (Logical expressions, if statement, switch.)
Week 5 - Thanksgiving (NO lectures - instead of topic 2 "data types".)
Week 6 & lecture topic-session 6 (Repetition/iteration in C programs.)
Week 7 & lecture topic-session 7 (Text file Input/Output in C programs.)
Week 8 (midterm break - no lectures): here it comes Wednesday, 17 October 2007, 1:30 to 2:45 pm - the time for your midterm exam (for details see parts 4 and 5 below)!
Week 9 & lecture topic-session 8 (Arrays in C programs.)
Week 10 & lecture topic-session 9 (Pointers in a C program.)
Week 11 & lecture topic-session 10 (Pointer applications in C programs.)
Week 12 & lecture topic-session 11 (Strings in C programs.)
Week 13 & lecture topic-session 12 (Derived types in C language - i.e.: enumerated, structure, and union.)
Week 14 & lecture topic-session 13 (Binary files in C language.)
Week 15 & lecture topic-session 14 (Bitwise operators in C language.)
Week 16 (final examinations break - no lectures): our final exam is on Wednesday, 12 December 2007, at 1:30 pm, in the same venue as our normal classes! For sample problems see "Part 6" below.
Part 2: Lecture Presentations (in "*.ppt" format for the "Power Point"):
Week 1 & lecture topic-session 1 (Introduction to programming concept.)
Week 2 & lecture topic-session 3 (Expressions of data and variables - constants, variables, expressions, assignments, data types, algorithms.)
Week 3 & lecture topic-session 4 (Modular programming – functions; Assignment 1 deadline on Wednesday.)
Week 4 & lecture topic-session 5 (Logical expressions, if statement, switch.)
Week 5 - Thanksgiving (NO lectures - instead of topic 2 "data types".)
Week 6 & lecture topic-session 6 (Repetition/iteration in C programs.)
Week 7 & lecture topic-session 7 (Text file Input/Output in C programs.)
Week 8 (midterm break - no lectures): here it comes - the time for your midterm exam (for details see parts 4 and 5 below)!
Week 9 & lecture topic-session 8 (Arrays in C programs.)
Week 10 & lecture topic-session 9 (Pointers in a C program.)
Week 11 & lecture topic-session 10 (Pointer applications in C programs.)
Week 12 & lecture topic-session 11 (Strings in C programs.)
Week 13 & lecture topic-session 12 (Derived types in C language - i.e.: enumerated, structure, and union.)
Week 14 & lecture topic-session 13 (Binary files in C language.)
Week 15 & lecture topic-session 14 (Bitwise operators in C language.)
Week 16 (final examinations break - no lectures): our final exam starts on Wednesday, 12 December 2007, at 1:30 pm, in the same venue as our normal classes! For sample problems see "Part 6" below.
Part 3: Assignments (in "*.doc" format for the "WORD XP"):
Assignment 1, worth 5 marks (due on Wednesday, 12 September 2007, time: starting of CP class).
Assignment 2, worth 7 marks (due on Wednesday, 10 October 2007, time: starting of CP class).
Assignment 3, worth 8 marks (due on Wednesday, 7 November 2007, time: starting of CP class).
Assignment 4, worth 9 marks (due on Wednesday, 21 November 2007, time: starting of CP class).
Part 4: Preparations for the midterm exam (in WORD.DOC format for the WORD XP):
Please notice, that after 7 weeks of study this semester, a midterm exam will be held
during our normal class hours. The exact date and time of this exam is tentatively
decided for Wednesday, 17 October 2007, 1:30 to 2:45 pm - in our usual lecture room).
During this exam students will be asked to propare a program in C, and then post it for
confirmation of their marking. An example of exam paper and a question type is provided below
(of course, during the exam a program to write will be different - this example shows
only how
the question is to look like, what level of difficulty it is going to be, and how
it is going to be marked). The question for this midterm exam will be simlar to
one of the "midterm exam problems" provided below. Therefore, if you are able to
solve each of the "midterm exam problems" provided below within the time of a single
lecture session, then you should have no difficulty with passing this exam. Therefore,
for your preparation
to the midterm exam, I would advice you to learn how to solve
each "midterm exam problems" listed below.
Example of the midterm exam paper and the formulation of exam question (including a marking schedule.)
Midterm exam problems (to be solved by students as their preparation to this exam.)
Please note how the problem used in the above "example of midterm exam peper"
compares to the first problem #Q_1_1 from the "midterm exam problems". In a
similar manner the problem used in the real midterm exam is to compare to
a problem listed above amongst other "midterm exam problems".
Part 5: Midterm exam (in WORD.DOC format for the WORD XP):
Midterm exam question (students are to download the exam question from here, complete it, and then post it for marking, within the duration of the midterm exam.)
Part 6: Preparations for the final exam (in WORD.DOC format for the WORD XP):
After 15 weeks of study this semester, the final exam will be held during our normal
class hours. The exact date and time of this exam is tentatively decided for
Wednesday, 12 December 2007, 1:30 to 2:45 pm - in our usual lecture room).
During this final exam students will again be asked to propare a program in C,
and then post it for confirmation of their marking. The question
for te final exam
will be simlar to one of the "final exam problems" provided below. Therefore,
if you are able to solve each of the "final exam problems" provided below within
the time of a single lecture session, then you should have no difficulty with passing
the final exam. Therefore, for your preparation
to the final exam, I would advice you
to learn how to solve each "final exam problem" listed below.
Final exam problems (to be solved by students as their preparation to this exam.)
Part 7: Final exam (in WORD.DOC format for the WORD XP):
Final exam question (students are to download the exam question from here during the exam hour, complete it, and then post it for marking, within the duration of the midterm exam.)
Part 8: A sample of assignment 4 program:
Shown here is a sample of C program
prepared for Assignment 4. (Notice
that apart from the source code in C,
the ZIP package provided below
includes also all data files and the
executable program "assignment4.bin".
Before the run, the extension of the
executable program should be renamed
from the present "bin" into the required "exe".)
Source program (in C) for Assignment 4
The entire package (ZIP format) for Assignment 4, but excluding the marking schedule
Part 9: Educational humor:
Hawaiian Good Luck Sign
Four people: Everybody - Nobody
Part 10: Additional instructions (e.g. how to use this web page):
(A) Each C program is provided here as a source code (*.cpp),
which is preperad for execution by the MS Visual Studio, version 6.0.
Many of these programs were previously working on Borland C as well.
(B) In order to download any source code (e.g. in *.cpp, in *.c, etc.) to your computer,
simply click on this code,
and then follow the procedure of downloading source code from a web page.
(C) My office room is: 440; office tel. ext.: 1742.
(D) My e-mail contact is:
pajakjan@gmail.com.
Date of starting this web page: 27 August 2007.
Date of the latest update of this page: 29 November 2007.
Counts of visits to this page:
|