C&DS LAB PROGRAMMS
- Write a C program to evaluates the following algebraic expressions after reading necessary
values from the user:
a) ax+b/ax-b
b) 2.5 log x + cos 32° + | x2 -y2 | + 2 xy
c) 2 e- (x-m/ 2 )2
- Write a C program for the following
a) Printing three given integers in ascending order
b) Sum of 1 + 2+ 3 + _ _ _ _ _ n
c) 1 + x2/2! + x2/ 4!+ _ _ _ _ _ upto ten terms
d) x +x3/3! + x5/5!+ _ _ _ _ _ upto 7th digit accuracy
e) Read x and compute Y =1 for x > 0
Y= 0 for x = 0
Y= -1 for x<0
- Write C program using FOR statement to find the following from a given set of 20 integers.
i) Total number of even integers.
ii) Total number of odd integers.
iii) Sum of all even integers. iv) Sum of all odd integers.
- Write a C program to obtain the product of two matrices A of size (3X3) and B of size (3X2). The
resultant matrix C is to be printed out along with A and B. Assume suitable values for A & B.
- Using switch-case statement, write a C program that takes two operands and one operator from
the user, performs the operation and then prints the answer. (consider operators +,-,/,* and %).
- Write C procedures to add, subtract, multiply and divide two complex numbers (x+iy) and (a+ib).
Also write the main program that uses these procedures
|
C&DS LAB |
UNIX Lab PROGRAMMS
- Write a shell script tp generate a multiplication table.
- Write a shell script that copies multiple files to a directory.
- Write a shell script which counts the number of lines and words present in a given file.
- Write a shell script which displays the list of all files in the given directory.
- Write a shell script(small calculator) that adds, subtracts, multiplies and divides the given two
integers. There are two division options: one returns the quotient and the other returns reminder.
The script requires 3 arguments: The operation to be used and two integer numbers. The options
are add(-a), subtract(-s), multiply(-m), quotient(-c) and reminder(-r).
- Write a shell script to reverse the rows and columns of a matrix.
- Write a C program that counts the number of blanks in a text file.
a) using standard I/O b) using system calls.
- Implement in C the following Unix commands using system calls.
a) cat
b) ls c) mv
- Write a program that takes one or more file/directory names as command line input and reports
the following information on the file:
c) File type.
d) Number of links.
e) Time of last access. f) Read, Write and Execute permissions.
- Write a C program that illustrates how to execute two commands concurrently with a command
pipe.
- Write a C program that illustrates the creation of child process using fork system call.
- Write a C program that displays the real time of a day every 60 seconds.
|
UNIX LAB |
DATA BASE MANAGEMENT SYSTEM LAB PROGRAMMS
- Creating tables for various relations (in SQL)
- Implementing the queries in SQL for
a) Insertion
b) Retrival (Implement all the operation like Union, Intersect, Minus, in, exist, aggregate
functions (Min.,Max…) etc…
c) Updation
d) Deletion
- Creating Views
- Writing Assertions
- Writing Triggers
- Implementing Operations on relations (tables) using PL/SQL
- Creating FORMS
- Generating REPORTS.
|
DBMS LAB |
UNIFIED MODELING LANGUAGE LAB PROGRAMMS
- The student should take up the case study of Unified Library application which is mentioned in the
theory, and Model it in different views i.e Use case view, logical view, component view, Deployment
view, Database design, forward and Reverse Engineering, and Generation of documentation of
the project.
- Student has to take up another case study of his/her own interest and do the same what ever
mentioned in first problem. Some of the ideas regarding case studies are given in reference books
which were mentioned in theory syllabus can be referred for some idea.
|
UML LAB |