Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Programming in 'C' L T P C

U18NCSC403 Total Contact Hours – 60 3 1 0 4


Prerequisite – Nil
Course Designed by – Department of Mathematics
OBJECTIVES:
 To introduce the concepts and develop working knowledge on introduction to C,
Control structures, Function arguments - Static and register variables, Arrays and.
Strings, File Access.

STATISTICS

UNIT - 1:

Introduction to C, vnariables, Data types - Declarations, Type conversions, increment and


decrement operators, Bitwise, Logical and Assignment operators.

UNIT - 2:

Expression and Conditional Expressions, Control structures, If-Else, SWITCH, WHILE, FOR
and DO WHILE Loop structures. Break continue, GO o's and Label Statements. Function,
function returning, Non-integers. Function arguments - Static and register variables.

UNIT - 3:

Arrays and. Strings - Array Declaration Multi dimensional Arrays Strings / Character Arays,
Array initialization - Pointers and Addresses. Pointers and Arrays - Pointer to functiois.

UNIT - 4:

Structures and functions, Arrays of structures, Fields, Unions - type definiton standard input and
output - formatted output - output - Access to the standard library.

UNIT - 5:

File Access, File handling in C - File discriptions - Error handling - 'Low level i/o - Read and
Write'. Open, Create, Close, Unlink - Random Access - seek and 1 seek.

TEXT BOOK:

1.Kapoor, V.K. and Gupta, S.P. (1978): Fundamentals of applied statistics, Sultan Chand &
Sons.

Gupta, R.C.(1974): Statistical Quality Control.


2.Montgomery, D.C. (1983): Introduction to Statistical Quality Control, John Waley & Sons.

3.Ekambaram, S K. (1963): Statistical basis of Acceptance sampling, Asia Publishing House.

REFERENCE BOOK:

Grant, E,L. and Laven Worth, R.S.: Statistical Quality Control, McGraw Hill.

COURSE OUTCOMES (COs)


Understand the concept of Introduction to C, variables, Data types –
CO1
Declarations.
CO2 Understand the Expression and Conditional Expressions, Control structures
CO3 Understand the concept of Arrays and. Strings.
Understand the usage of Structures and functions, Arrays of structures,
CO4
Fields.
CO5 Understand the concept of File Access, Random access.

Category NC
Approval 47th Academic Council Meeting

ALLIED PRACTICAL 1 (PROGRAMMING


L T P C
IN C)
U18NCNS4L1 Total Contact Hours – 60 3 1 0 4
Prerequisite – Nil
Course Designed by – Department of Mathematics
OBJECTIVES:
 To introduce the concepts and develop working

SECOND ALLIED COURSE II - – COMPUTER SCIENCE

C Programming Lab

1. Solution of a Quadratic Equation (all cases)

2. Sum of Series (sine, cosine, ex)


3. Coversion of Number System (Decimal to Binary, Decimal to Octal)

4. Largest, Smallest among ‘n’ numbers (Also use it to find the number of occurrences of a given
number)

5. Ascending and Descending order of numbers using Arrays.

6. Sorting of names in Alphabetical order

7. Matrix Operations (Addition, Subtraction, Multiplication – use Functions

8. Finding factorials, generating Fibonacci Numbers using recursive functions.

9. String manipulations without using string functions (String length, String Comparison, String
Concatenation, Palindrome Checking, Counting words and lines in String – use function
Pointers).

COURSE OUTCOMES (COs)


CO1 Understand to develop Formulation of an LPP
Understand the Testing for Optimality using MODI method
CO2
Understand the concept of Hungarian Algorithm
CO3
CO4 Understand the usage of Sequencing Problem
Understand Determination of Floats and Critical Path
CO5
Category NC
Approval 47th Academic Council Meeting

MATHEMATICS

U18MCSC50 UNIX AND C PROGRAMMING L T P C


4
Total Contact Hours - 60 4 0 0 4

Prerequisite –NIL

Course Designed by – Department of Computer Science

OBJECTIVES

At the end of this course, students shall be able to this computer lab course aims to provide strong
logical thinking and error-free syntax
UNIT I – UNIX 12

Introduction - History - Basic Commands - Working with Files - Working with Directories - Filename
Substitution - Standard Input / Output and I/O Redirection - Pipes - Standard Error - More on
Commands.

UNIT II - C LANGUAGE – INTRODUCTION 12

Introduction- Identifiers and keywords, Constants and variables, Declarations – Expressions and
statements, Types of operators - Library functions Input statements - Output statements.

UNIT III - CONDITIONAL STATEMENTS 12

Conditional statements-If …else - Switch. Case - Looping - While, DO While - Break and continue,
Comma operator, go to statement.

UNIT IV – FUNCTIONS 12

Functions-Definitions and prototypes - Passing arguments to a function - Storage class variables,

UNIT V – ARRAYS 12

Arrays –single dimension- Arrays with two dimensions- Matrix manipulations - String operations.

TEXT BOOKS

1. Stephen G. Kochan and Patrick Wood, UNIX Shell Programming, Sams Publishing, 2003.

2. E.Balagurusamy, “Programming in ANSI C”, Tata McGraw Hill, 2008.


REFERENCE BOOKS

1. Arnold Robbins, “Unix in a Nutshell”, O'Reilly, 2005.


2. Kanetkar Y, “Let us C”, BPB Publications, 1995.

3. Deitel H.M. and Deitel .P.J, “How to Program C”, Prentice Hall India, 2001.
4. Kamthane, Ashok N, “Programming in C”, Pearson Education, 2013.

5. YashavantKanetkar, Exploring C, BPB Publications, 2003.


COURSE OUTCOMES (COs)

CO1 Understand the concept of Standard Error - More on Commands.

CO2 Understand to Working with Directories

CO3 Understand the concept of conditional statements

CO4 Understand the concept of Functions, Passing arguments to a function

CO5 Understand the concept of single dimension

CO6 Understand the concept of Matrix manipulations

U18MCSC5L1 C PROGRAMMING LAB L T P C

Total Contact Hours - 0 0 4 2

Prerequisite

Course Designed by – Department of Computer Science

OBJECTIVES

At the end of this course, students shall be able to this computer lab course aims to provide strong
logical thinking and error-free syntax

List of Experiments to be Implemented in C language.

1. Program to print the following output using for loop

22

333

4444
……

………

2. Program to evaluate the following function to 0.0001% accuracy.


a)sin(x) b) cos(x) c) exp(-x)

b)
3. Program to find roots of a quadratic equation.

4. Program to sort the array of numbers and then to find median value.

5. Program to read an integer number and then to print in the reverse order and also to find the sum
of all the digits.

8. Program to create structure, which consists of EMPLOYEE details like ID Number, Name,
Designation, Basic Salary, DA, others. Then to calculate DA, HRA and PF depending on the
basic salary and print gross salary, deduction, net salary.

9. Program to read two Matrices of different Data Types such as integers and floating point numbers
and then to find the sum, difference, and product of the above two matrices.

10. Program to check whether the given string is a palindrome.

11. Program to solve ODE using Euler’s method, R-K method.


12. Program to interpolate a value using Lagrange interpolation formula.
13. Program to find integral value using Simpson’s formula.
14. Lagrange interpolation.
Trapezoidal and Simpson one-third rules.
COURSE OUTCOMES (COs)

CO1 Understand the codes writing and.

CO2 Understand the debugging techniques

CO3 Understand the concept conditional statements

CO4 Understand the concept with Functions, Passing arguments to a function

CO5 Understand the results in neat

form in C++ Language.

CO6 Understand about Program to evaluate sin(x), cos(x)

You might also like