Introduction to Computer Programming: Pascal Instructor: Jason D. Bakos – Eberly 314 (you have to go through 313) Phone: 624-8402 E-mail: jbakos@cs.pitt.edu Web: http://www.cs.pitt.edu//~jbakos Office Hours (tentative):
Monday, Wednesday – 1:00-2:00
Tuesday, Thursday – 1:00-3:00
and by appointment (walk-ins welcome)
Text: Pascal: An Introduction to the Art and Science of Programming, Fourth Edition
Walter Savitch
The Benjamin/Cummings Publishing Company, Inc.
ISBN 0-8053-7458-2 Language/Environment:
PCs running Turbo Pascal for DOS Course Policies:
General Requirements
Exam 1
20%
Exam 2
20%
Exam 3
20%
Prog. Assignments
25%
Quizzes
15%
Each student is expected to do his/her own work. For a first offense, a student caught collaborating/cheating in any way will receive a zero for the exam/homework/project in question. In the event of a second offense, the student will receive
an F for the course and may be subject to stronger action.
Students are encouraged to attend all lectures, which frequently include material that is not directly taken from the text. If a student misses a lecture, he/she is responsible for the material covered and is advised to copy the notes from a classmat
e.
An abundance of information, including announcements, handouts, review sheets, and solutions will be posted on my web page throughout the term. Students are expected to be aware of all information that is posted on my web page and should access them
frequently.
All graded materials that a student receives back should be saved in a safe place until after the term has ended and he/she has received and accepts his/her final grade. In this way, and grade discrepancies can be easily resolved.
Exams
The dates for the exams will be announced at least one week in advance.
Students are expected to be present for all exams. Make-up exams will only be given in the event of an emergency, and only if I am informed in advance. If you cannot contact me directly, send me e-mail or call the CS department (624-88
30) and leave me a message. Failure to notify me prior to missing an exam will result in a zero for the exam.
Programs
There will be 5-6 programming assignments throughout the term.
Students are expected to hand in all of the assignments. Failure to hand in one assignment will result in a zero grade for that assignment.
Programs are to be written in Turbo Pascal.
Programs will be graded on a 100-point basis. However, exceptional programs may be awarded extra points.
Programs will be accepted up to 1 class period after their due dates, but 15 points will be deducted from the grade if a program is late. No program will be accepted more than 1 class period after its due date.
Students are expected to have a backup disk for every assignment they turn in. In this way, if there is any problem with the copy that is handed in (corrupt disk, etc.) the backup can be used for grading purposes.
More details on the programs will be given with the first assignment.
Quizzes
Quizzes will be given during recitations, and will be posted on the Web and/or announced in class at least one class or recitation period before they are given. They will generally include material covered in the previous class(es) and recitation(s).
Seven (7) quizzes will be given, but only five (5) will count for your grade (3 points apiece). In other words, your lowest two (2) quiz scores will be dropped.
Absolutely no makeup quizzes will be given.
Since two quiz scores are dropped, you can feasibly miss two quizzes and not have it hurt your grade.
Goals:
To familiarize the student with the basic operations and functions of computers, and in particular to provide the student with a good working knowledge of PCs.
To give the student a good understanding of fundamental approaches to problem analysis, algorithm development and program design.
To provide the student with a thorough working knowledge of the programming language Turbo Pascal.
Topics Covered:
Introduction – course policies, intro. to computer hardware/software
Algorithms, programming languages, and problem solving
Pascal basics – structure of a program, I/O, variables
Calculations and expressions
Introduction to subprograms/procedures
Making decisions in a program – Boolean conditions, the if statement and the case statement
Iteration in a program – loops (while, for, and repeat)
Modular programming – parameters, scope, and stepwise design
Types in Pascal – subranges enumerated types, type compatibility
Assignment compatibility
Using text files in Pascal programs – read statement, eof/eoln loops
Procedural and data abstraction, Turbo Pascal Units, Software Engineering
1-Dimensional arrays and strings – declaration, operations with, uses
Records
Arrays of records (if time permits)
Multidimensional arrays (if time permits)
Important Dates:
Monday, August 30, 1999 – First class meeting
Monday, September 6, 1999 – Labor Day, No Classes
Friday, September 10, 1999 – Last day for Add/Drop
Saturday, October 29, 1999 – Last day for Withdrawal
Wednesday, November 24-28 – Thanksgiving Recess – No Classes Monday, December 13-18 – Final Exam Week