[go: up one dir, main page]

0% found this document useful (0 votes)
521 views4 pages

PARUL UNIVERSITY - Faculty of Engineering and Technology

This document provides a syllabus for a Programming for Problem Solving course in the first semester of a BTech program. It outlines the course structure, contents, teaching scheme, examination scheme, outcomes, reference books, and practical assignments. The course aims to provide basic computer programming concepts using C language and help students develop logical abilities for solving engineering problems. Key topics include data types, operators, control structures, arrays, strings, functions, structures, pointers, and file management. Students will be evaluated through external theory and practical exams, internal assessments, assignments, and a continuous evaluation component. Upon completion, students should be able to understand programming concepts, write and debug C programs, and apply programming to solve problems.

Uploaded by

Veera sai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
521 views4 pages

PARUL UNIVERSITY - Faculty of Engineering and Technology

This document provides a syllabus for a Programming for Problem Solving course in the first semester of a BTech program. It outlines the course structure, contents, teaching scheme, examination scheme, outcomes, reference books, and practical assignments. The course aims to provide basic computer programming concepts using C language and help students develop logical abilities for solving engineering problems. Key topics include data types, operators, control structures, arrays, strings, functions, structures, pointers, and file management. Students will be evaluated through external theory and practical exams, internal assessments, assignments, and a continuous evaluation component. Upon completion, students should be able to understand programming concepts, write and debug C programs, and apply programming to solve problems.

Uploaded by

Veera sai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

PARUL UNIVERSITY - Faculty of Engineering and Technology

Department of Computer Science & Engineering


SYLLABUS FOR 1st Sem BTech PROGRAMME
Programming for problem solving (203105102)

Type of Course: BTech


Prerequisite: Requires Basic Knowledge of Computer
Rationale: This course is design to provide basic ideas of computer programming. This course also
makes help to understand programming language. It will help to develop their logical abilities.

Teaching and Examination Scheme:

Teaching Scheme Examination Scheme


Credit External Internal Total
Lect Hrs/ Tut Hrs/ Lab Hrs/
Week Week Week
T P T CE P
4 0 2 5 60 30 20 20 20 150
Lect - Lecture, Tut - Tutorial, Lab - Lab, T - Theory, P - Practical, CE - CE, T - Theory, P - Practical

Contents:
Teaching
Sr. Topic Weightage
Hrs.
Number System:

Introduction and type of Number system, Conversion between number


1 system, Arithmetic operations on number system, Signed and 2% 4
unsigned number system Software, Computer Languages and
Computer Program

Introduction to ‘C’ Programming:

Features of C language, structure of C Program, Flow Charts and


2 3% 4
Algorithms Types of errors, debugging, tracing/stepwise execution of
program, watching variables values in memory.

Constants, Variables and data Types:

Character Set, C tokens, Keywords and Identifiers, Constants,


3 5% 4
Variables, Data types, Declaration of Variables, Assigning values to
variables, typedef, and Defining symbolic constants.

Operators and Expression:

Introduction to Operators and its types, Evaluation of expressions,


4 10% 4
Precedence of arithmetic operators, Type conversions in expressions,
Operator precedence and associatively.

Management Input and Output Operators:

5 Introduction, reading a character, writing a character, formatted input, 5% 2


formatted output.

Printed on : 27-05-2021 08:01 PM Page 1 of 4


Control structure in C:

Decision Making & branching: Decision making with If &If .. Else


statements, If .. Else statements (Nested …. Ladder), The Switch
6 15% 5
&goto statements, The turnery (?:) Operator Looping: The while
statement, The break statement & The Do.. While loop, The FOR loop,
Jump within loops – Programs

Array:

7 Introduction, One-dimensional arrays, Two-dimensional arrays, arrays, 10% 5


Concept of Multidimensional arrays.

String:
8 10% 4
string , string storage , Built-in-string functions

User-Defined Functions:

Concepts of user defined functions, prototypes, definition of function,


9 10% 7
parameters, parameter passing, calling a function, recursive function,
Macros, Pre-processing.

Structure and Unions:

Introduction, Structure definition, declaring and initializing Structure


10 variables, Accessing Structure members, Copying & Comparison of 10% 6
structures, Arrays of structures, Arrays within structures, Structures
within Structures, Structures and functions, Unions

Pointers:

11 Basics of pointers, pointer to pointer, pointer and array, Pointer to 10% 5


array, array of pointers , functions returning a pointer

Dynamic memory allocation:

12 Introduction to Dynamic memory allocation, malloc(), calloc(), free(), 5% 3


realloc()

File Management in C:
13 5% 3
Introduction to file management and its functions

*Continuous Evaluation:
It consists of Assignments/Seminars/Presentations/Quizzes/Surprise Tests (Summative/MCQ) etc.

Reference Books:
1. Programming in ANSI C (TextBook)
E. Balaguruswamy; Tata McGraw-Hill
2. C Programming: Test Your Skills
Ashok Kamthane
3. Computer Fundamentals
P.K.Sinha and Priti Sinha; BPB Publications; 4th Edition
4. Star C Programming (TextBook)
; STAR Certification; C Certification Exam
5. Programming with C
Byron Gottfried; Tata McGraw Hill Education
6. C The Complete Reference
Herbert Schildt

Printed on : 27-05-2021 08:01 PM Page 2 of 4


7. Let Us C
Yashavant P. Kanetkar; Tata McGraw Hill

Course Outcome:
After Learning the course the students shall be able to:
1.Understand Concepts of computer programming language.
2.Develop the algorithms for solving Engineering problems.
3.Write, compile and debug programs with C compiler

List of Practical:
1. Practical Set 1 (Basics)
1. Write a program to print HELLO FRIENDS!
2. Write a program that reads two nos. from key board and gives their addition, subtraction,
multiplication, division and modulo.
3. Write a program to calculate area of circle,use Ω as symbolic constants.
4. Write a program to convert days into months and days.
5. Write a program which calculates the summation of three digits from the given 3 digit
number.
6. Write a program to demonstrate enumerates data type.
7. Write a program to compute Fahrenheit from centigrade.
8. Write a program to calculate simple interest.
9. Read the price of item in decimal form e.g. 12.50 and separate Rs and Paise from the given
value e.g. 12 rupees and 50 paise.
2. Practical Set 2 (Control Structures)

1. Write a program to find the largest of the three nos. using Nested-If-Else statement.
2. Write a C program to enter a character and to check whether it is a small letter or it is a capital
letter or it is a digit or it is a special symbol.
3. Write a program to read marks from keyboard and your program should display equivalent
grade according to following table.
Marks Grade
100-80 Dist
60-79 First Class
35-59 Second Class
0-34 Fail
4. Write a program to read marks of a student from keyboard whether the student id pass (if).
5. Write a program to find the sum of first N odd numbers.
6. Write a program using while loop construct which finds the factorial of a given integer number.
7. Write a C program using do…while and for loop constructs to reverse the digits of the number.
8. Write a program to demonstrate use of Switch- Break Statement.
9. Write a program to find out all the numbers divisible by 5 and 7 between 1 to 100.
Check for Armstrong number. A number is Armstrong if sum of cube of every digit is
same as the original number. E.g. 153=13+53+33=153
10. Write a program to print the output of bellow series. 1!+2!+3!+4!+… ..... n!
11. Write a program to print the following outputs using for Loop.
(a) 1 (b) *
12 **
123 ***
12. Write a program to print the following outputs using for Loop.
(a) 1 (b) 321
21 21
321 1

3. Practical Set 3 (Array & Strings)

Printed on : 27-05-2021 08:01 PM Page 3 of 4


1. Write a program which sorts 10 numbers into ascending order.
2. Write a program to find maximum element from 1-D array.
3. Write a program to find number of odd and even elements from the 1-D array.
4. Write a program add two 2x2 matrices.
5. Write a program to count number of positive, negative and zero elements from 3x3 matrix.
6. Write a function for the following operations on string:

Copy one string to another

Comparing two strings

Adding a string to the end of another.

1. Write a program to count vowels from a entered String.


2. Write a program which finds whether a string is a palindrome or not.
4. Practical Set 4 (Functions)
1. Write a program to find factorial of a number using recursion.
2. Write a program that used user defined function Swap ( ) and interchange the value of two
variable.
3. Write a function to return 1 if the number is prime otherwise return 0.
5. Practical Set 5 (Structures)
1. Define a structure type, personal that would contain person name, date of joining and salary.
2. Define a structure called cricket that will describe the following information:

Player name

Team name

Batting average

6. Practical Set 6 (Pointrs)


1. Write a program to add two numbers using pointers.
2. Write a program to swap two numbers using pointer.
7. Practical Set 7 (File Management)
1. Write a program to illustrate reading files contents.
2. Write a program to illustrate the use of fgets( ).

Printed on : 27-05-2021 08:01 PM Page 4 of 4

You might also like