Section outline


  • In order to meet up the challenges of ICT and Wireless Communication Sectors, students need to learn about computer programming. This course is designed to teach the students about basic computer programming language which will help them to understand the current generation structured programming language. This course will help them to analyze and create numerous programming related problems professionally in their job field. 


    • There will be 3 credit hours teaching per week. Two class will be taken 90 minutes each.  
    • DIU Moodle will be the only online teaching platform beside regular classes.
    • Every student must join DIU Moodle.
    • All assignments need to be submitted on Moodle. 
    • 5 CT will be taken. Best 3 will be considered. 
    • Bonus marking depends on 3 parameters such as Class Attendance, class participation and interaction in Moodle. 
    • Students must follow the course outline and lesson plan
    Class Routine:

    Theory: 
    Sunday: 12:00 pm -1:30pm
    Wednesday: 10:30 am-12:00 pm
    Laboratory: 
    Sunday : 9:00 am-10:30 am

    Join class at google Meet:
    https://meet.google.com/cqq-ygty-ysd


    *** All are requested to contact me during counselling hours.


  • Course Objectives:

    • To learn the basics of computer programming.
    • To explain different computer programming generations and their structures.
    • To improve algorithm design skill through lecturers and exercises.
    • To develop leadership quality through Group works.
    • To grow programming skill through assignments.
    • To expand confidence by doing various practical problems.
    • To become a professional programmer in real life problem-solving. 

    Learning Outcomes: At the End of the course students will be

    • Able to explain Computer programming definition.
    • Able to differentiate between computer programming generations.
    • Able to learn problem-solving processes.
    • Able to learn different features of C.
    • Able to write C program structure.
    • Able to write C program using operators and Expressions.
    • Able to learn about data input and output of C program.
    • Able to detect and correct errors.
    • Able to write C program based on real-life problems.

     Course Contents:

    • Introduction to Computer Programming.
    • Programming Language generations.
    • Problem-solving process,
    • Algorithm writing processes. (Block, Pseudocode, Flowchart, structure programming, coding)
    • Program Testing.
    • Structure of C
    • Basic C program writing and output observation.
    • C fundamentals, identifiers, keywords, variable declaration,
    • Error detection and correction.
    • Introduction to Control statement and types.
    • Program writing using control structures.
    • Functions Calling, Functions Return.
    • Program Writing using functions.
    • Array initialization
    • Passing array elements to a function.
    • String standard library functions.
    • Programming with strings.


  • Aims/Rationale: To teach the students about the concept, Generations of computer programming language so that they can use the knowledge in their academic and professional career.

    Learning Outcomes: At the end of the session participant will be able to :

    • Explain the concept of programing language
    • Describe different generations of computer programing language.
    • Understand High-level Programing language

      Explain Compilers vs. interpreters
    •  Differentiate between early computer programing.

    Lecture Contents:

    • Computer Program definition
    • Computer instructions
    • Programming language, Source file, Source Code
    • Programming language Generations
    • Machine Language, Assembly Language
    • Procedural Language, Problem Oriented Language
    • Natural Language
    • High Level Languages
    • Compiler, Interpreter, object code
    • Programing in early Computers
    • FORTRAN, COBOL, PASCAL


  • Aims/Rationale: To teach the students about algorithm definition, properties, and algorithm writing procedures so that they can apply this knowledge in their academic and professional fields.

    Learning Outcomes: At the end of the session participant will be able to :

    • Explain algorithm definition and its properties
    • Write algorithms in different ways
    • Apply algorithm in programming languages

    Lecture Contents:

    • Problem-solving process
    • Algorithm definition
    • Properties of algorithm
    • Algorithm design in Block diagrams, Flowcharts.
    • Algorithm design in Pseudocode

  • Date: 25.08.2021
    Time: 11:00 AM



  • Aims/Rationale: To teach the students about C programming basics so that they can apply this knowledge in their academic and professional fields.

    Learning Outcomes: At the end of the session participant will be able to :

    • Understand the basics of C programming
    • Able to write the structure of the C language.
    • Write the first program in C

    Lecture Contents:

    • Structure of a C program
    • The first program in C
    • The main function
    • The Build process of C
    • Steps in learning C
    • How to install and compile C
    • Library functions, Stdio.h, conio.h
    • C program writing and output observation.


  • Aims/Rationale: To teach the students about C programming fundamentals so that they can apply this knowledge in their academic and professional fields.

    Learning Outcomes: At the end of the session participant will be able to :

    • Understand the character set, keywords in C
    • Learn basic data types in C
    • Write different types of expressions and statements in C
    • Understand different types of operators and their uses in c programming.

    Lecture Contents:

    • The character set of C
    • Identifiers
    • Keywords in C
    • Basic Data types in C
    • Variable and constants
    • Escape sequences
    • Complex, logical expressions
    • Operators and operands
    • Operator categories
    • Prefix & Postfix


    • Task 1
      Write a C program which will swap two integer values. Hint: if a=10, b=20, then the output will be a=20, b

      Task 2

      Write a C program which will reverse a 3 digit integer number.


       


    • Lab task for today: Mr X draws 1200 Dollar as Basic salary. He also gets House rent 50% of basic, medical allowance 25% and Travel allowance 20% of basic. Mr X pays 20% of basic as income tax. Write a C program which will calculate the gross salary of Mr X.

  • Date: 08.09.2021
    Time: 10:40 am
    Syllabus: Intro to C and C Fundamental



  • Aims/Rationale: To teach the students about C programming control statements so that they can apply this knowledge in their class, exam and assignments.

    Learning Outcomes: At the end of the session participant will be able to :

    • Understand Decision, Selection and Repetition Control Statements.
    • Solve practical problems using control structure.
    • Write C program based on real life problems.

    Lecture Contents:

    • Decision Control Statement(if statement, if with else, nested ifs, Ladder if)

    • Selection Statement (Switch-Case Structure)
    • Repetition/ Loop statement ( while loop, for loop, do-while loop, break statement )
    • Nested control statements.
    • Program writing using control structures.

  • Quiz #3
    Date: 19th September, 2021
    Time: 09:15 am
    Syllabus: Control Statement -if-else


  • Date: September 28, 2021
    Time:  09:30 am-11:30 am




  • Quiz #4
    Date: 23rd June, 2021
    Time: 11:00 am
    Syllabus: Control Statement 



  • Aims/Rationale: To teach the students about Array ans strings so that they can apply this knowledge in their academic and professional fields.

    Learning Outcomes: At the end of the session participant will be:

    • Able to write Program using 1D and 2D array.
    • Able to explain string and its functions.
    • Able to write C programs using String.

    Lecture Contents:

    • Array initialization
    • Passing array elements to a function.
    • 2D Array.
    • Array Program Writing
    • String standard library functions.
    • Programming with strings.


  • Aims/Rationale: To teach the students about Functions and pointers so that they can apply this knowledge in their academic and professional fields.

    Learning Outcomes: At the end of the session participant will be:

    • Able to understand functions and it’s necessity in C programming.
    • Able to use functions in C programming.
    • Able to write C programs using pointers.

    Lecture Contents:

    • Introduction to Functions.
    • Passing values between Functions.
    • Functions Calling, Functions Return.
    • Call by value, Call by references.
    • Pointer notation.
    • Program writing using functions.


  • Date: November 24, 2021
    Time: 10:00 pm
    Syllabus: Functions.


    • Write a C program using functions (Call by value / Call by reference) )which will Print your Semester Grade.

      Hint:

      Input : 5 Subjects

      Output: 




  • Date: 19th July 2021

    Time: 10:00 am to 12: 00 pm

    Final Examination Syllabus: 

    • Control Statements: If-else, While, Do-while, For, Switch-case
    • Array and String
    • Functions and Pointers

    Question Type:

    • Program writing
    • Output tracing
    • code conversion
    • Error detection and correction
    • Theoretical