Computer Programming
0%
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 Objectives
Course Contents
1.3. Problem-solving using a computer
- Problem analysis
- Algorithm and flowchart
- Programming
- Compilation, linking and execution
- Debugging and testing
- Documentation
4. Input and Output
3 hrs
4.2. Unformatted I/O
- Character I/O
- String I/O
4.3. Formatted I/O
- Control string (Flags, field width, precision, and specifier)
- Formatted I/O (scanf(), printf())
5.3. Branching statement
- Simple if statement
- if-else statement
- Nested if-else statement
- else-if ladder
- switch statement
- go to statement
5.4. Looping statement
- for loop
- while loop
- do while
- Nested loop
5.5. Loop interruption
- break
- continue
6. Array and Pointer
7 hrs
7.3. Elements of user-defined function
- Function definition
- Function prototype
- Function parameters
7.6. Category of functions
- 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
8. Structures
5 hrs
9. File Management
4 hrs
9.5. Input-output operations on files
- 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
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.