SIR C R REDDY COLLEGE OF ENGINEERING
FIRST YEAR ENGINEERING DEPARTMENT
COURSE HANDOUT
Subject: PPSUC Class: I/IV B.Tech(R19)
Semester: I Academic year: 2019-20
Course handler K.VIJAYALAKSHMI
Course co-
coordinator
SIR C R REDDY COLLEGE OF ENGINEERING, ELURU
DEPARTMENT OF MECHANICAL ENGINEERING
VISION:
“To emerge as a premier institution in the field of technical education and research
in the state and as a home for holistic development of the students and contribute to the
advancement of society and the region.”
MISSION:
M1: To provide high quality technical education through a creative balance of academic
and industry oriented learning.
M2: To create an inspiring environment of scholarship and research.
M3: To instill high levels of academic and professional discipline.
M4: To establish standards that inculcate ethical and moral values that contributes to
growth in career and development of society in general.
.VISION & MISSION OF THE DEPARTMENT
Vision:
To be a center of excellence in the field of Mechanical Engineering in this region where the
best of teaching, learning and research synergize with a broader sense of social responsibility.
Mission:
To become a nerve center for academic excellence in Mechanical Engineering for all-round
development of students by:
M1 Creating an environment conducive for high quality teaching and learning.
M2 Enabling the students to meet the challenges of the industry through research oriented
education and entrepreneurial activities.
M3 Inculcating ethical values and responsibility towards environment and society with lead-
ership qualities
SIR C R REDDY COLLEGE OF ENGINEERING, ELURU
DEPARTMENT OF MECHANICAL ENGINEERING
COURSE DESCRIPTION
Subject: PROGRAMMING FOR PROBLEM SOLVING USING C (R19)
Class : I/IV Semester-1
Branch: Mechanical Engineering
1. Target:
a. Percentage of Pass: 80
b. Percentage of A Grades: 50
2. Course Description : This is a course in programming in C. No previous programming
experience is assumed; however, mathematical maturity at the level of a second year science
or engineering undergraduate is assumed. We underline solving problems using the language,
and introduce standard programming techniques like alternation, iteration and recursion. We
will briefly glimpse the basics of software engineering practices like modularization, com-
menting, and naming conventions which help in collaborating and programming in teams.
Sir C R Reddy College of Engineering, Eluru
Department Of Mechanical Engineering
Course Objective, Course Outcomes and CO-PO Correlation with Justification
Course Title : PROGRAMMING FOR PROBLEM SOLVING USING C
Year/Semester: 1/4 ME 1st Semester
Class/Section A
A.Y 2019-20
Name of the Staff: K.Vijayalakshmi
SYLLABUS:
UNIT I
Introduction to Computers: Computer Systems, Computing Environments,
Computer languages, Creating and running Programs, Computer Numbering Sys-
tem, Storing Integers, Storing Real Numbers
Introduction to the C Language: Background, C Programs, Identifiers, Types,
Variable, Constants, Input/output, Programming Examples, Scope, Storage
Classes and Type Qualifiers, Tips and Common Programming Errors Key Terms,
Summary, Practice Seat.
Structure of a C Program: Expressions Precedence and Associativity, Side Ef-
fects, Evaluating Expressions, Type Conversion Statements, Simple Programs,
Command Line Arguments Tips and Common Errors, Key Terms, Summary,
Practice Sets.
UNIT II
Bitwise Operators: Exact Size Integer Types, Logical Bitwise Operators, Shift
Operators, Tips and Common Programming Errors, Key Terms, Summary, Prac-
tice Set.
Selection & Making Decisions: Logical Data and Operators, Two Way Selec-
tion, Multiway Selection, More Standard Functions, Tips and Common Program-
ming Errors, Key Terms, Summary, Practice Set.
Repetition: Concept of Loop, Pretest and Post-test Loops, Initialization and Up-
dating, Event and Counter Controlled Loops, Loops in C, Other Statements Re-
lated to Looping, Looping Applications, Programming Example The Calculator
Program, Tips and Common Programming Errors, Key Terms, Summary, Prac-
tice Set.
UNIT III
Arrays: Concepts, Using Array in C, Array Application, Two Dimensional Ar-
rays, Multidimensional Arrays, Programming Example – Calculate Averages,
Tips and Common Programming Errors, Key Terms, Summary, Practice Set.
Strings: String Concepts, C String, String Input / Output Functions, Arrays of
Strings, String Manipulation Functions String/ Data Conversion, A Programming
Example – Morse Code, Tips and Common Programming Errors, Key Terms,
Summary, Practice Set.
Enumerated, Structure, and Union: The Type Definition (Type def), Enumer-
ated Types, Structure, Unions, Programming Application, Tips and Common Pro-
gramming Errors, Key Terms, Summary, Practice Set.
UNIT IV
Pointers: Interdiction, Pointers to pointers, Compatibility, L value and R value,
Tips and Common Programming Errors, Key Terms, Summary, Practice Set.
Pointer Applications: Arrays, and Pointers, Pointer Arithmetic and Arrays,
Memory Allocation Function, Array of Pointers, Programming Application, Tips
and Common Programming Errors, Key Terms, Summary, Practice Set.
Processor Commands: Processor Commands, Tips and Common Programming
Errors, Key Terms, Summary, Practice Set.
UNIT V
Text Input / Output: Files, Streams, Standard Library Input / Output Functions,
Formatting Input / Output Functions, Character Input / Output Functions, Tips
and Common Programming Errors, Key Terms, Summary, Practice Set.
Binary Input / Output: Text versus Binary Streams, Standard Library, Functions
for Files, Converting File Type, Tips and Common Programming Errors, Key
Terms, Summary, Practice Set. Functions: Designing, Structured Programs,
Function in C, User Defined Functions, Inter-Function Communication, Standard
Functions, Passing Array to Functions, Passing Pointers to Functions, Recursion,
Passing an Array to Function, Tips and Common Programming Errors,Key
Terms, Summary, Practice Set.
TEXT BOOKS:
1. Programming for Problem Solving, Behrouz A. Forouzan, Richard F.Gilberg,
CENGAGE
2. The C Programming Language, Brian W.Kernighan, Dennis M. Ritchie, 2e,
Pearson
3. Programming in C, Reema Thareja, OXFORD
REFERENCE:
1. Computer Fundamentals and Programming, Sumithabha Das, Mc Graw Hill
2. Programming in C, Ashok N. Kamthane, Amit Kamthane, Pearson
3. Computer Fundamentals and Programming in C, Pradip Dey, Manas Ghosh,
OXFORD
PREREQUISITES:
Students are expected to know and understand the fundamentals of computer software &
hardware. Understand the notation of algorithm and flowchart.
COURSE OBJECTIVES
At the end of the course, the student shall be able to:
The objectives of Programming for Problem Solving Using C are
1) To learn about the computer systems, computing environments, developing of a computer
program and Structure of a C Program
2) To gain knowledge of the operators, selection, control statements and repetition in C
3) To learn about the design concepts of arrays, strings, enumerated structure and union
types. To learn about their usage.
4) To assimilate about pointers, dynamic memory allocation and know the significance of
Preprocessor.
5) To assimilate about File I/O and significance of functions
COURSE OUTCOMES (COs):
CO NO. DESCRIPTION
Describe the concept of computer system, analyze a given problem, develop an
C1101.1 algorithm, fundamental programming constructs, identify data representation
formats, describe operators and their precedence, associativity.
C1101.2 Understand branching and loop statements.
C1101.3 Describe the concept of homogeneous derives data types, strings and
functions.
C1101.4 Understand pointers and heterogeneous data types.
C1101.5 Describe the concept of file system and functions.
POs & PSOs REFERENCE:
PO Engineering PO1 Project Mgt. &
PO6 Engineer & Society
1 Knowledge 1 Finance
PO Environment & PO1
Problem Analysis PO7 Life Long Learning
2 Sustainability 2
PO Design & PSO
PO8 Ethics Design Skill
3 Development 1
PO Individual & Team PSO
Investigations PO9 Manufacturing Skill
4 Work 2
PO PO1 Communication
Modern Tools
5 0 Skills
CO-PO MAPPING (HIGH:3; MEDIUM:2; LOW:1):
PO P
PO PO PO PO PO PO PO PO PO PO PO PS PS
CO O
1 3 4 5 6 7 8 9 10 11 12 O1 O2
2
C1101.1 2 - 3 1 - - - - - - - 2 - -
C1101.2 - 2 3 - - - - - - - - - - -
C1101.3 - 3 3 - - - - - - - - - - -
C1101.4 2 3 3 - - - - - - - - - - -
C1101.5 - 3 3 - - - - - - - - 1 - -
2.0 2. 3.0 1.0 1.5
Overall - - - - - - - - -
0 75 0 0 0
Course
JUSTIFICATION FOR CO-PO MAPPING:
CO PO Justification
CO1 PO1 Graduate will be apply the programming constructs strongly to find solutions for
various computational problems
CO1 PO3 Able to use appropriate constructs to solve mathematical problems
PO1 C constructs will help life-long learning in the broadest context of technological
CO1 change.
2
CO2 PO2 In this case students are expected to apply homogenous data types
CO2 PO3 Able to identify this types to solve engineering problems
CO3 PO2 Able to select homogeneous type to solve engineering activities
CO3 PO3 Able to recognize the importance of homogeneous types to engage lifelong
learning
CO3 PO5 Able to apply module techniques to solve engineering problems
CO4 PO1 Able to develop programs based on modules
CO4 PO2 Able to understand the usage and limitations of functions and pointers
CO4 PO3 Allows creating, selecting, and applying appropriate techniques build the
architecture for a given problem.
CO5 PO2 Students gain the ability to engage in independent and lifelong learning in the
broadest context of technological change.
The knowledge about the heterogeneous types and files will help them to reach
CO5 PO3 conclusions about the complexity and methodologies for solving real life
problems
PO1 Heterogeneous types and files can aid in the representation of various real life
CO5 problems
2
PROGRAM OUTCOMES ARE THE KNOWLEDGE, SKILLS, AND ABILITIES
STUDENTS SHOULD POSSESS WHEN THEY GRADUATE FROM A PROGRAM.
PO1: Engineering knowledge: Apply the knowledge of mathematics, science, engineering
fundamentals, and an engineering specialization to the solution of complex engineering prob-
lems.
PO2: Problem analysis: Identify, formulate, research literature, and analyse complex engin-
eering problems reaching substantiated conclusions using the first principles of mathematics,
natural sciences, and engineering sciences.
PO3: Design/development of solutions: Design solutions for complex engineering problems
and system components or processes that meet the specified needs with appropriate consider-
ation for the public health and safety, and the cultural, society, and environmental considera-
tions.
PO4: Conduct investigations of complex problems: Use research-based knowledge and re-
search methods including design of experiments, analysis and interpretation of data, and syn-
thesis of the information to provide valid conclusions.
PO5: Modern tool usage: Create, select, and apply appropriate techniques, resources, and
modern engineering and IT tools including prediction and modelling to complex engineering
activities with an understanding of the limitations.
PO6: The engineer and society: Apply reasoning informed by the contextual knowledge to
assess societal, health, safety, legal and cultural issues and the consequent responsibilities rel-
evant to the professional engineering practice.
PO7: Environment and sustainability: Understand the impact of the professional engineer-
ing solutions in society and environmental contexts, and demonstrate the knowledge of, and
need for sustainable development.
PO8: Ethics: Apply ethical principles and commit to professional ethics and responsibilities
and norms of the engineering practice.
PO9: Individual and team work: Function effectively as an individual, and as a member or
leader in diverse teams, and in multi-disciplinary settings.
PO10: Communication: Communicate effectively on complex engineering activities with
the engineering community and with society at large, such as, being able to comprehend and
write effective reports and design documentation, make effective presentations, and give and
receive clear instructions.
PO11: Project management and finance: Demonstrate knowledge and understanding of the
engineering and management principles and apply these to one’s own work, as a member and
leader in a team, to manage projects and in multi-disciplinary environments.
PO12: Life-long learning: Recognize the need for, and have the preparation and ability to
engage in independent and life-long learning in the broadest context of technological change.
PROGRAM SPECIFIC OUTCOMES (PSOs)
PSO1: Demonstrate proficiency in design and analysis of automobile and aviation parts using
advanced software tools.
PSO2: Acquire skills to automate manufacturing processes.
TOPICS BEYOND SYLLABUS:
The lists of topics are covered as part of content beyond syllabus:
1. Towers of Hanoi
2. Stack
SIR C R REDDY COLLEGE OF ENGINEERING, ELURU
DEPARTMENT OF MECHANICAL ENGINEERING
I / IV B.Tech 1st SEMESTER A.Y. 2019-20
PPSUC [R19ES1101]
COURSE SCHEDULE
The schedule for the whole course/subject is:
Total
Unit Description of the
Description of the Topics no of
No Chapter
periods
Introduction to Computers:
Computer Systems, Computing
Environments, Computer lan-
guages, Creating and running
Programs, Computer Number-
ing System, Storing Integers,
Storing Real Numbers
Introduction to the C Lan-
guage: Background, C Pro-
grams, Identifiers, Types, Vari-
able, Constants, Input/output,
INTRODUCTION TO Programming Examples,
COMPUTERS & C Scope, Storage Classes and
1 18
PROGRAMMING Type Qualifiers, Tips and Com-
BASICS mon Programming Errors Key
Terms, Summary, Practice
Seat.
Structure of a C Program:
Expressions Precedence and
Associativity, Side Effects,
Evaluating Expressions, Type
Conversion Statements, Simple
Programs, Command Line Ar-
guments Tips and Common Er-
rors, Key Terms, Summary,
Practice Sets.
2 OPERATOR & LOOPS Bitwise Operators: Exact Size 20
Integer Types, Logical Bitwise
Operators, Shift Operators,
Tips and Common Program-
ming Errors, Key Terms, Sum-
mary, Practice Set.
Selection & Making Deci-
sions: Logical Data and Opera-
tors, Two Way Selection, Mul-
tiway Selection, More Standard
Functions, Tips and Common
Programming Errors, Key
Terms, Summary, Practice Set.
Repetition: Concept of Loop,
Pretest and Post-test Loops, Ini-
tialization and Updating, Event
and Counter Controlled Loops,
Loops in C, Other Statements
Related to Looping, Looping
Applications, Programming Ex-
ample The Calculator Program,
Tips and Common Program-
ming Errors, Key Terms, Sum-
mary, Practice Set.
Arrays: Concepts, Using Array
in C, Array Application, Two
Dimensional Arrays, Multidi-
mensional Arrays, Program-
ming Example – Calculate Av-
erages, Tips and Common Pro-
gramming Errors, Key Terms,
Summary, Practice Set.
Strings: String Concepts, C
String, String Input / Output
Functions, Arrays of Strings,
String Manipulation Functions
ARRAYS,STRINGS &
3 String/ Data Conversion, A 10
STRUCTURES Programming Example – Morse
Code, Tips and Common Pro-
gramming Errors, Key Terms,
Summary, Practice Set.
Enumerated, Structure, and
Union: The Type Definition
(Type def), Enumerated Types,
Structure, Unions, Program-
ming Application, Tips and
Common Programming Errors,
Key Terms, Summary, Practice
Set.
4 POINTERS Pointers: Interdiction, Pointers 10
to pointers, Compatibility, L
value and R value, Tips and
Common Programming Errors,
Key Terms, Summary, Practice
Set.
Pointer Applications: Arrays,
and Pointers, Pointer Arith-
metic and Arrays, Memory Al-
location Function, Array of
Pointers, Programming Appli-
cation, Tips and Common Pro-
gramming Errors, Key Terms,
Summary, Practice Set.
Processor Commands: Proces-
sor Commands, Tips and Com-
mon Programming Errors, Key
Terms, Summary, Practice Set.
Text Input / Output: Files,
Streams, Standard Library Input
/ Output Functions, Formatting
Input / Output Functions, Char-
acter Input / Output Functions,
Tips and Common Program-
ming Errors, Key Terms, Sum-
mary, Practice Set.
Binary Input / Output: Text
versus Binary Streams, Stan-
dard Library, Functions for
Files, Converting File Type,
Tips and Common Program-
5 FILES & FUNCTIONS 12
ming Errors, Key Terms, Sum-
mary, Practice Set. Functions:
Designing, Structured Pro-
grams, Function in C, User De-
fined Functions, Inter-Function
Communication, Standard
Functions, Passing Array to
Functions, Passing Pointers to
Functions, Recursion, Passing
an Array to Function, Tips
and Common Programming Er-
rors,Key Terms, Summary,
Practice Set.
Total no of instructional periods available for the course : 109 periods
Total no of estimated periods : 70 periods
LESSON PLAN
BATCH: 2019-2023
Semester: I
Name of the Program: MECH Year: 2019-20 Section: A&B
Course/Subject: 1/4 B. TECH/PPSUC Course Code: R19ES1101
Name of the Faculty: K.VIJAYALAKSHMI Department: IT
Designation: Assistant Professor
Teaching aids CO’S
Clas No.Of
Sl.No Topics used
s Periods
LCD/OHP/BB
1 Introduction to Computers:
L1 1 Computer Systems, Com- BB CO1
puting Environments
2 L2 1 Computer languages, Creating BB CO1
and running Programs
3 L3 1 Computer Numbering System, BB CO1
Storing Integers
4 L4 1 Storing Real Numbers BB CO1
5 L5 1 Introduction to the C Language: BB CO1
Background, C Programs
6 L6 1 Identifiers, Types BB CO1
7 L7 1 Variable, Constants BB CO1
8 L8 1 Input/output, Programming BB CO1
Examples
9 L9 1 Scope, Storage Classes BB CO1
10 L10 1 Type Qualifiers BB CO1
11 L11 1 Tips and Common Pro- BB CO1
gramming Errors Key
Terms, Summary, Practice
Seat.
12 L12 1 Structure of a C Program BB CO1
13 L13 1 Expressions Precedence and BB CO1
Associativity, Side Effects,
14 L14 1 Evaluating Expressions, BB CO1
15 L15 1 Type Conversion Statements, BB CO1
16 L16 1 Simple Programs, BB CO1
17 L17 1 Command Line Arguments Tips CO1
and Common Errors, Key Terms, BB
18 L18 1 Summary, Practice Sets. CO1
19 L19 1 Bitwise Operators: Exact CO1
Size BB
20 L20 1 Integer Types CO1
BB
21 L21 1 Logical operators CO1
BB
22 L22 1 Bitwise Operators CO1
23 L23 1 Shift Operators CO1
BB
L24 1 Tips and Common Pro- CO1
24 gramming Errors, Key
Terms, Summary, Practice BB
Set.
25 L25 1 Selection & Making Decisions: CO2
Logical Data and Operators BB
26 L26 1 Two Way Selection CO2
BB
27 L27 1 Multiway Selection, More CO2
Standard Functions BB
28 L28 1 Tips and Common Programming CO2
Errors Key Terms, Summary, BB
Practice Set.
29 L29 1 Repetition: Concept of Loop BB CO2
30 L30 1 Pretest Loops BB CO2
31 1 Post-test Loops, CO2
L31 BB
32 1 Initialization and Updating, BB CO2
L32
33 1 Event and Counter Controlled BB CO2
L33 Loops,
34 1 Loops in C, BB CO2
L34
35 1 Other Statements Related to BB CO2
L35 Looping, ,
36 1 Looping Applications CO2
L36
37 1 Programming Example The CO2
L37 Calculator Program, BB
38 1 Tips and Common Programming CO2
L38 Errors, BB
39 1 Key Terms, Summary, CO2
L39 Practice Set. BB
1 Arrays: Concepts, Using CO3
40
Array in C, Array Applica-
L40 BB
tion, Two Dimensional Ar-
rays,
41 1 Multidimensional Arrays, CO3
L41 Programming Example – BB
Calculate Averages,
1 Tips and Common Pro- CO3
42 gramming Errors, Key
L42 Terms, Summary, Practice BB
Set.
43 1 Strings: String Concepts, C CO3
L43 String, String Input / Output BB
Functions, Arrays of Strings,
44 1 String Manipulation Functions CO3
L44 String/ Data Conversion, BB
45 1 A Programming Example – Morse CO3
L45 Code, BB
1 Tips and Common Pro- CO3
46 gramming Errors, Key
L46 Terms, Summary, Practice BB
Set.
47 1 Enumerated, Structure, and CO4
L47 Union: The Type Definition BB
(Type def),
48 1 Enumerated Types, Structure, CO4
L48 Unions, Programming BB
Application,
1 Tips and Common Pro- CO4
49 gramming Errors, Key
L49 Terms, Summary, Practice BB
Set.
1 Pointers: Interdiction, CO4
50
Pointers to pointers,
L50 BB
51 1 Compatibility, L value and CO4
L51 R value, BB
1 Tips and Common Pro- CO4
52 gramming Errors, Key
L52 Terms, Summary, Practice BB
Set.
53 L53 1 Pointer Applications: Ar- CO4
rays, and Pointers, BB
54 1 Pointer Arithmetic and Arrays CO4
L54 BB
55 1 ,Memory Allocation Function, , CO4
L55 BB
56 1 Array of Pointers, Programming CO4
L56 Application BB
1 Tips and Common Pro- CO4
57 gramming Errors, Key
L57 Terms, Summary, Practice BB
Set.
58 L58 1 Processor Commands: Pro- BB CO4
cessor Commands
1 Tips and Common Pro- CO4
gramming Errors, Key
59
Terms, Summary, Practice
L59 BB
Set.
1 Text Input / Output: Files, CO5
60
Streams, Standard Library
L60 BB
Input / Output Functions,
61 1 Formatting Input / Output CO5
L61 Functions, Character Input / BB
Output Functions, .
62 1 Tips and Common Programming CO5
L62 Errors, Key Terms, Summary, BB
Practice Set
63 1 Binary Input / Output: Text CO5
L63 versus Binary Streams, Standard BB
Library,
64 1 Functions for Files, Converting CO5
L64 File Type,. BB
65 1 Tips and Common Programming CO5
L65 Errors, Key Terms, Summary, BB
Practice Set
66 1 Functions: Designing, Structured CO5
L66 Programs, Function in C, BB
67 1 User Defined Functions, Inter- CO5
L67 Function Communication, BB
Standard Functions,
68 1 Passing Array to Functions, CO5
L 68 Passing Pointers to Functions, BB
69 1 Recursion, Passing an Array to CO5
L69 Function, BB
L70 1 Tips and Common Pro- CO5
70 gramming Errors,Key
Terms, Summary, Practice BB
Set.
TEXT BOOKS:
4. Programming for Problem Solving, Behrouz A. Forouzan, Richard F.Gilberg,
CENGAGE
5. The C Programming Language, Brian W.Kernighan, Dennis M. Ritchie, 2e,
Pearson
6. Programming in C, Reema Thareja, OXFORD
REFERENCE:
4. Computer Fundamentals and Programming, Sumithabha Das, Mc Graw Hill
5. Programming in C, Ashok N. Kamthane, Amit Kamthane, Pearson
6. Computer Fundamentals and Programming in C, Pradip Dey, Manas Ghosh,
OXFORD
COURSE MODULE
COURSE HANDLER H.O.D FED
CO-ORDINATOR CO-ORDINATOR