CP1311 Scientific Programming in C
Files to be downloaded for Practical2, Practical3, Practical4, Practical5, Practical6, Examples



True/False Quiz

Set 1
Set 2
Set 3
Set 4

Multiple Choice Quiz

Set 1
Set 2
Set 3
Set 4
Set 5
Set 6


Some Useful Links:
C Courseware: http://www.cm.cf.ac.uk/Dave/C/CE.html

Beginner's Guide to C: http://home1.inet.tele.dk/seth/c-tut.html

C Lecture Notes and Tests: http://www.cit.ac.nz/smac/cprogram/cstart.htm






Preface

CP1311 Scientific Programming in C is an essential module for the Computer Programming and Applications (CPA) minor. This module aims to build a strong foundation for programming skills and therefore the training shall start from the very basic level. The software used in this course will be Turbo C++ (TC++). Unlike other Science courses, hands-on training is very important in a programming course. Therefore, we will be using the TC++ debugger extensively during the practical sessions. The purpose of such an arrangement is to provide more effective learning as we will be able to visualize, better control and understand the execution of computer programs with the use of debugger.

Our training comprises 3 different activities: lecture, tutorial and practical. Students should not skip any of these sessions because they complement one another. I strongly encourage students to read at least 15 pages of transparencies in advance for each lecture as it will help you understand my presentation better. During tutorial sessions two types of questions will be engaged: reinforcement and critical thinking. Students are to present their solutions to critical thinking questions during the tutorial classes. As for the practical sessions, the first half an hour will be spent on hands-on questions. After that the conductor will brief you on the assignment you have to program. Students are always encouraged to experiment with their own ideas, and to demonstrate their innovation and creativity. The full score for each program is 100 marks, and to motivate you to put in that extra effort, I will award an added bonus of up to 20 marks!





Text Book

Learning C
Neil Graham, McGraw-Hill International Editions
ISBN 0-07-112628-7


Reference Book

Application Programming in Ansi C
3rd Edition
Richard Johnsonbaugh and Martin Kalin
ISBN 0-13-394222-8
Prentice Hall





Lecture Contents

  1. Getting Started
  2. Control Statements and Related Operators
  3. Input and Output
  4. Data Representations
  5. Arrays
  6. Pointers and Strings
  7. Types and Conversion
  8. Macros





Practical Work

  1. NUSNET-III, WIN-NT, DOS, WWW and TURBO C++ (Keyboard and Screen I/O)
  2. Debugging (Iteration)
  3. Text File Processing
  4. Function and Control
  5. 2-D Array
  6. Passing by Reference





Teaching Plan

CP1311 Scientific Programming in C

July-Oct 1998

Week No.

Week Starting

Lecture

Practical

Tutorial

1

13/7/98

Mon, Thu

   

2

20/7/98

Mon, Thu

   

3

27/7/98

Mon, Thu

NUSNET-III, WIN-NT, DOS, WWW, TC++

 

4

3/8/98

Mon, Thu

 

Set-1

5

10/8/98

Thu

Debugging

 

6

17/8/98

Mon, Thu

 

Set-2

7

24/8/98

Mon, Thu

Text File

 

8

1/9/98

Mon, Thu

 

Set-3

 

7/9/98

Recess

1

14/9/98

Mon, Thu

Function

 

2

21/9/98

Mon, Thu

Programming Test

(Open Book)

 

3

28/9/98

Mon, Thu

 

Set-4

4

5/10/98

Mon, Thu

2-D Array

 

5

12/10/98

Mon, Thu

 

Set-5

6

19/10/98

Thu

Pointer

 
LECTURE: Monday : 1 to 1:45 pm, LT-32
Thursday : 1 to 1:45 pm, LT-32












Words of Advice

Each assignment is individual. While I always encourage students to help each other, all students should ultimately submit their own program. Students may discuss the assignments among themselves or in our discussion group, but they should not collaborate while writing the final program. After all, please remember that you still have to solve the test and examination questions all by yourself.

You are encouraged to discuss your problems with me. The surest way leading to a fruitful discussion is to prepare yourself before you come. I would like to see you with a list of questions written on a piece of paper, and I will answer them one by one. Appointments may be made by voice mails or electronic mails. You can consult me at any time and any where, except in the deep pool (because I will sink if I get distracted).

All the training materials I have written are not meant to replace any text and reference books. There are more than 300 books on C language in the Science and Central libraries and I urge you to read at least a few of them. Such independent reading exercises will certainly give you more knowledge than what I can do.