Course Name: Programming for Problem Solving
Course Code: CS 201
Contact: 3:0:0
Total Contact Hours: 40
Credits: 3
Prerequisites: Number system, Boolean Algebra
__________________________________________________________________________________________________________________________________
Course Contents:
Module 1: Fundamentals of Computer and Algorithm, Flowchart [8L]
History of Computer - Generation of Computer - Classification of Computers - Basic structure of Computer System - Primary & Secondary Memory, Processing Unit, Input & Output devices - Binary and Allied number systems representation of signed & unsigned numbers - BCD, ASCII, Binary number. Arithmetic – Addition and Subtraction (using 1’s complement and 2’s complement) - Overview of Procedural vs Structural language, compiler and assembler (basic concepts) - Problem solving- Algorithm & flow chart.
Module 2: Introduction to C Programming [7L]
Modular Programming, Structure vs Object oriented programming, C Fundamentals - Variable and Data Types: The C character set identifiers and keywords, data type & sizes - variable names, declaration, statements - Arithmetic operators, relational operators, logical operators, increment and decrement operators, bitwise operators, assignment operators, conditional operators, special operators - type conversion - C expressions, precedence and associativity, Input and Output: Standard input and output, formatted output - printf, formatted input scanf, bit fields.
Module 3: Branching, Decision making and Looping [9L]
Statement and blocks, if - else, switch case - goto and labels, Loops - while, for, do while - break and continue - One-dimensional arrays, Two-dimensional arrays - Multidimensional arrays. Passing an array to a function Character array and string - array of strings, Passing a string to a function - String related functions.
Module 4: Functions and Pointers in C [11L]
Function types, function prototypes, functions returning values - functions not returning values, scope rules - function recursion - auto, external, static and register variables Functions - C preprocessor and macro - Pointers, Pointer and Array, Pointer and String - Pointer and functions - Dynamic memory allocation.
Module 5: Structures and File handling in C [5L]
Basic of structures, arrays of structures - structures and pointers, structures and functions - formatted and unformatted files - fopen, fclose, fgetc, fputc, fprintf, fscanf function - Command line arguments.
_________________________________________________________________________________________________________________________________________________
Course Outcome:
CO1 Understand the basics of computer generations and system architecture, differentiate among different programming languages for problem solving.
CO2 Analyze the way of design, execution and debug programs in C language.
CO3 Understand and remember data types, loops, functions and apply to solve mathematical and scientific problems.
CO4 Apply to the dynamic behavior of memory by the use of pointers. And explain the difference between call by value and call by address.
CO5 Design and analyze modular programs using control structure, selection structure, Union and file.
Want more Google Sites designs, tutorials and helpful information for free?
Visit ARC Templates now!