Computer Programming
Course Title: Computer Programming
Course No: ENCT 101
Nature of the Course: Theory + Lab
Semester: 1
Full Marks: 40 + 60 + 50
Pass Marks: 16 + 24 + 20
Credit Hours: 3
Course Description
Course Objectives
Course Contents
- Problem analysis
- Algorithm and flowchart
- Programming
- Compilation, linking and execution
- Debugging and testing
- Documentation
- Character I/O
- String I/O
- Control string (Flags, field width, precision, and specifier)
- Formatted I/O (scanf(), printf())
- Simple if statement
- if-else statement
- Nested if-else statement
- else-if ladder
- switch statement
- go to statement
- for loop
- while loop
- do while
- Nested loop
- break
- continue
- Function definition
- Function prototype
- Function parameters
- Functions with no arguments and no return values
- Functions with arguments and no return values
- Functions with arguments and return values
- Functions with no arguments and return values
- Character I/O (fputc(), fgetc())
- String I/O (fgets(), fputs())
- Formatted I/O (fscanf(), fprintf())
- Record I/O (fwrite(), fread())
Laboratory Works
- 1.Lab 1: Introduction and demonstrations of projects written in C
- 2.Lab 2: Formatted and unformatted Input/output in C
- 3.Lab 3: Branching in control structure
- 4.Lab 4: Looping in control structure
- 5.Lab 5: Array in C
- 6.Lab 6: String in C
- 7.Lab 7: Pointers in C
- 8.Lab 8: User defined functions in C
- 9.Lab 9: Structure in C
- 10.Lab 10: File handling in C
- 11.Group project on C maximum 4 students in a group at the end of the course.
Reference Books
- 1.Lafore, R. (1993). The Waite Group's C programming using Turbo C++ (1st ed.). SAMS Publishing.
- 2.Balagurusamy, E. (2019). Programming in ANSI C (8th ed.). McGraw Hill Education.
- 3.Gottfried, B. S. (2010). Programming with C (3rd ed.). McGraw Hill Education.