CONCEPT OF PROGRAMMING USING C
UP Polytechnic/Diploma In Computer Science And Engineering - Office Automation Tools 2nd Semester Syllabus - EdufyHUB 4U |
RATIONALE
Computers play a vital role in present day life, more so, in the professional life of technician engineers. People, who are working in the field of computer industry, use computers in solving problems more easily and effectively. In order to enable the students use the computers effectively in problem solving, this course offers the modern programming language C along with exposition to various applications of computers. The knowledge of C language will be reinforced by the practical exercises.
LEARNING OUTCOMES
After undergoing the subject, the students will be able to:
- Identify the problem and formulate an algorithm for it.
- Identify various control structures and implement them.
- Identify various types of variables.
- Use pointer in an array and structure.
- Use structures and union for handling data.
- Explain the concepts of C programming language.
- Explain and implement the language constructs concepts.
- Install C software on the system and debug the program.
- Explain and execute member functions of C in the program.
- Describe and implement array concept in C program.
- Describe and execute pointers.
- Expose File System using File Handling.
DETAILED CONTENTS
1. Algorithm and Programming Development
(08 Periods)
- Steps In Development Of A Program
- Algorithm Development
- Concept Of Flowcharts
- Programming And Use Of Programming
- Various Techniques Of Programming
- Structured Programming
- Preprocessors
- Debugging
- Compiling
2. Program Structure
(08 Periods)
- Structure of C program
- Writing and executing the first C program
- Translator:
- Assembler
- Interpreter
- Compiler
- I/O Statement
- Assign Statement
- Keywords
- Constants
- Variables And Data Types
- Storage Classes
- Operators And Expressions
- Unformatted And Formatted I/O
- Data Type Casting
3. Control Structures
(10 Periods)
- Introduction
- Decision Making With IF – Statement
- IF – Else And Nested IF
- Ladder If-Else
- Loop:
- While
- Do-While
- For
- Break
- Continue
- Goto
- Switch Statements
4. Functions
(10 Periods)
- Introduction To Functions
- Global And Local Variables
- Function Declaration
- Function Call And Return
- Types Of Functions
- Standard Functions
- Parameters And Parameter Passing
- Call - By Value/reference
- Recursive Function
- Function With Array
- Function With String
5. Arrays And Strings
(10 Periods)
- Introduction To Arrays
- Array Declaration
- Length Of Array
- Manipulating Array Elements
- Single And Multidimensional Array
- Arrays Of Characters
- Passing An Array To Function
- Introduction Of Strings
- String Declaration And Definition
- String Related Function i.e. Strlen, Strcpy, Strcmp
6. Pointers
(08 Periods)
- Introduction To Pointers
- Static And Dynamic Memory Allocation
- Address Operator And Pointers
- Declaring And Initializing Pointers
- Single Pointer
- Pointers To An Array
7. Structures And Unions
(08 Periods)
- Declaration Of Structures
- Accessing Structure Members
- Structure Initialization
- Array Of Structure Variable
- Pointer To A Structures
- Union
- Declaration Of Union
8. File Handling
(08 Periods)
- Basics Of File Handling
- Opening And Closing Of File
- Reading And Writing Character From A File
LIST OF PRACTICALS
- Programming exercises on executing and editing a C program.
- Programming exercises on defining variables and assigning values to variables.
- Programming exercises on arithmetic, logical and relational operators.
- Programming exercises on arithmetic expressions and their evaluation.
- Programming exercises on formatting input/output using printf and scanf and their return type values.
- Programming exercises using if statement.
- Programming exercises using if – Else.
- Programming exercises on switch statement.
- Programming exercises on while and do – while statement.
- Programming exercises on for – statement.
- Simple programs using functions and recursive function.
- Programs on one-dimensional array.
- Programs on two-dimensional array.
-
- Programs for concatenation two strings together.
- Programs for comparing two strings.
- Simple programs using pointers.
- Simple programs using structures.
- Simple programs using union.
- Simple programs for File Handling.
INSTRUCTIONAL STRATEGY
The subject is totally practical based. Students should be given clear idea about the basic concepts of programming. In practical session student should be asked to draw flow chart, write algorithm and then write program for the algorithm and run on computer. It is required that students should maintain records (files with printouts).
MEANS OF ASSESSMENT
RECOMMENDED BOOKS
- Let us C by Yashwant Kanetkar
- Programming in ANSI C by E Balaguruswami, Tata McGraw Hill Education Pvt Ltd, New Delhi
- Programming in C by Reema Thareja; Oxford University Press, New Delhi
- Programming in C by Gottfried, Schaum Series, Tata McGraw Hill Education Pvt Ltd, New Delhi
- Exploring C by Yashwant Kanetkar; BPB Publications, New Delhi
- Programmming in C : A Practical Approach by Ajay Mittal, Pearson Publication
- e-books/e-tools/relevant software AICTE/UPBTE/NITTTR.
Websites for Reference:
https://swayam.gov.in/
https://spoken-tutorial.orgs/
SUGGESTED DISTRIBUTION OF MARKS
Topic No. | Time Alloted (Peroid) | Marks Allotted (%) |
---|---|---|
1 | 08 | 13 |
2 | 08 | 14 |
3 | 10 | 16 |
4 | 10 | 16 |
4 | 10 | 16 |
5 | 10 | 16 |
6 | 08 | 12 |
7 | 08 | 08 |
8 | 08 | 06 |
Total | 42 | 100 |