Logo

Computer Fundamentals and Applications

bcasemester 1

Computer Fundamentals and Applications

Subject Code: CACS101

Course Title: Computer Fundamentals and Applications

Course No: CACS101

Nature of Course: Theory & Practical

Full Marks: 60+20+20

Pass Marks: 24+8+8

Credit Hours: 8

Course Description

This course covers the concepts of structured Computer Fundamentals and Applications .

Course Objective

This course is designed to familiarize students to the Computer Fundamentals and Applications .

Course Contents

Unit 1. Problem Solving with Computer   2 Hrs.

Problem analysis, Algorithms and Flowchart, Coding, Compilation and Execution, History of C, Structure of C program, Debugging, Testing and Documentation

Unit 2. Elements of C    4 Hrs.

C Standards( ANSI C and C99), C Character Set, C Tokens, Escape sequence, Delimiters, Variables, Data types (Basic, Derived, and User Defined), Structure of a C program, Executing a C program, Constants/ Literals, Expressions, Statements and Comments.

Unit 3. Input and Output   2 Hrs.

Conversion specification, Reading a character, Writing a character, I/O operations, Formatted I/O

Unit 4. Operators and Expression   4 Hrs.

Arithmetic operator, Relational operator, Logical or Boolean operator, Assignment Operator, Ternary operator, Bitwise operator, Increment or Decrement operator, Conditional operator, Special Operators(sizeof and comma), Evaluation of Expression, Operator Precedence and Associativity.

Unit 5. Control Statement  4 Hrs.

Conditional Statements, Decision Making and Branching, Decision Making and Looping, Exit function, Break and Continue.

Unit 6. Arrays   6 Hrs.

Introduction to Array, Types of Array (Single Dimensional and Multidimensional), Declaration and Memory Representation of Array, Initialization of array, Character Array and Strings, Reading and Writing Strings, Null Character, String Library Functions( string length, string copy, string concatenation, string compare)

Unit 7. Functions   5 Hrs.

Library Functions, User defined functions, Funciton prototype, Function call, and Function Definition, Nested and Recursive Function, Function Arguments and Return Types, Passing Arrays to Function, Passing Strings to Function, Passing Arguments by Value, Passing Arguments by Address, Scope visibility and lifetime of a variable, Local and Global Variable,

Unit 8. Structure and Union  5 Hrs.

Introduction, Array of structure, Passing structure to function, Passing array of structure to function, Structure within structure ( Nested Structure), Union, Pointer to structure

Unit 9. Pointers   6 Hrs.

Introduction, The & and * operator, Declaration of pointer, Chain of Pointers, Pointer Arithmetic, Pointers and Arrays, Pointers and Character Strings, Array of Pointers, Pointers as Function Arguments, Function Returning pointers, Pointers and Structures, Dynamic Memory Allocation

Unit 10. File Handling in C  4 Hrs.

Concept of File, Opening and closing of File, Input Output Operations in File, Random access in File, Error Handling in Files

Unit 11. Introduction to Graphics   3 Hrs.

Concepts of Graphics, Graphics Initialization and Modes, Graphics Function

Text Books

  1. Byron Gottfried: "Programming with C," , Second Edition, McGraw Hill Education.

Reference Books

  1. Paul Deitel, Harvey Deitel, C: How to Program, Eighth Edition, Pearson Publication.
  2. Al Kelley, Ira Pohl: "A Book on C", Fourth Edition, Pearson Education.
  3. Brian W. Keringhan, Dennis M. Ritchiem, The C programming Language, Second Edition, PHI Publication.
  4. Ajay Mittal, Programming in C: A Practical Approach, Pearson Publication
  5. Stephen G. Kochan, Programming in C, CBS publishers & distributors.
  6. E. Balagurusamy, Programming in ANSI C, Third Edition, TMH publishing

Lab Works

This is the first "programming" course in B.Sc.CSIT. It builds the foundation on how to write a program using any high level language. Hence, this course requires a lot of programming practice so that students will be able to develop good logic building and program developing capability which is essential throughout the B.Sc.CSIT course and thereafter. 20% of the total marks is assigned from the practical. Some important contents that should be included in lab exercises are as follows:

Unit 1: (2 Hrs)

Create, compile, debug, run and test simple C programs

Unit 2,3,4: (5 Hrs)

Using different data types available in C, perform arithmetic operations in C, perform formatted input/output operations, perform character input/output operations.
Using relational operator, logical operator, assignment operator, ternary operator, and other operators. Evaluation of Expression to check operator precedence and associativity.