MC7102 PROBLEM SOLVING AND PROGRAMMING NOTES ANNA UNIVERSITY

PROBLEM SOLVING AND PROGRAMMING MC7102 NOTES FOR ANNA UNIVERSITY

PROBLEM SOLVING AND PROGRAMMING(PSP) MC7102 NOTES FOR ANNA UNIVERSITY

UNIT I INTRODUCTION TO COMPUTER PROBLEM SOLVING

Introduction
The Problem Solving aspect
Top down design
Implementation of algorithm
Program Verification
The efficiency of algorithm
The analysis of algorithm

UNIT II PROGRAMMING, ALGORITHMS AND FLOWCHARTS


Programs and Programming
Building blocks for simple programs
Programming life cycle phases
Pseudo code representation
Flow charts
Algorithm
Programming Languages
Compiler
Interpreter, Loader and Linker
Program execution
Classification of Programming Language
Structured Programming Concept

UNIT III BASICS OF ‘C’, INPUT / OUTPUT & CONTROL STATEMENTS


Introduction
Identifier
Keywords
Variables
Constants
I/O Statements
Operators
Initialization
Expressions
Expression Evaluation
Lvalues and Rvalues
Type Conversion in C
Formatted input and output functions
Specifying Test Condition for Selection and Iteration
Conditional Execution
Selection
Iteration and Repetitive Execution
Go to Statement
Nested Loops
Continue and break statements

UNIT IV ARRAYS, STRINGS, FUNCTIONS AND POINTERS


Array
One dimensional Character Arrays
Multidimensional Arrays
Arrays of Strings
Two dimensional character array
Functions
Parameter passing mechanism scope
Storage classes
Recursion
Comparing iteration and recursion
Pointers
Pointer operators
Uses of pointers
Arrays and pointers
Pointers and strings
Pointer indirection
Pointers to functions
Dynamic memory allocation

UNIT V USER-DEFINED DATATYPES & FILES


Structures
initialization
Nested structures
Structures and arrays
Structures and Pointers
Union
typedef and enumeration types
Bit fields
File Management in C
Files and Streams
File handling functions
Sequential access file
Random access file
Command line arguments

Download PSP Notes