Thursday, April 30, 2020

Operating Systems Lab

CMSACOR06P: Operating Systems Lab Practical: 60 Lectures
C/ C++ programs 1. WRITE A PROGRAM (using fork() and/or exec() commands) where parent and child execute: a. same program, same code. b. same program, different code. c. before terminating, the parent waits for the child to finish its task. 2. WRITE A PROGRAM to report behaviour of Linux kernel including kernel version, CPU type and model. (CPU information) 3. WRITE A PROGRAM to report behaviour of Linux kernel including information on configured memory, amount of free and used memory. (memory information) 4. WRITE A PROGRAM to print file details including owner access permissions, file access time, where file name is given as argument. 5. WRITE A PROGRAM to copy files using system calls. 6. Write program to implement FCFS scheduling algorithm. 7. Write program to implement Round Robin scheduling algorithm. 8. Write program to implement SJF scheduling algorithm. 9. Write program to implement non-preemptive priority based scheduling algorithm. 10. Write program to implement preemptive priority based scheduling algorithm. 11. Write program to implement SRJF scheduling algorithm. 12. Write program to calculate sum of n numbers using thread library. 13. Write a program to implement first-fit, best-fit and worst-fit allocation strategies.

CBCS DATA STRUCTURE PRACTICAL ASSIGNMENT

CMSACOR05P: Data Structures Lab Practical: 60 Lectures 

1. Write a program to search an element from a list. Give user the option to perform Linear or Binary search. Use Template functions. 

2. WAP using templates to sort a list of elements. Give user the option to perform sorting using Insertion sort, Bubble sort or Selection sort. 

3. Implement Linked List using templates. Include functions for insertion, deletion and search of a number, reverse the list and concatenate two linked lists (include a function and also overload operator +). CLICK HERE

 4. Implement Doubly Linked List using templates. Include functions for insertion, deletion and search of a number, reverse the list.  CLICK HERE

5. Implement Circular Linked List using templates. Include functions for insertion, deletion and search of a number, reverse the list. CLICK HERE

6. Perform Stack operations using Linked List implementation.  CLICK HERE

7. Perform Stack operations using Array implementation. Use Templates.

8. Perform Queues operations using Circular Array implementation. Use Templates. 

9. Create and perform different operations on Double-ended Queues using Linked List implementation.CLICK HERE

 10. WAP to scan a polynomial using linked list and add two polynomial. CLICK HERE

11. WAP to calculate factorial and to compute the factors of a given no. (i)using recursion, (ii) using iteration CLICK HERE

12. (ii) WAP to display Fibonacci series (i)using recursion, (ii) using iteration  CLICK HERE

 13. WAP to calculate GCD of 2 number (i) with recursion (ii) without recursion  CLICK HERE
 
 14. WAP to create a Binary Search Tree and include following operations in tree:
 i. Insertion (Recursive and Iterative Implementation) 
ii. Deletion by copying
 iii. Deletion by Merging
 iv. Search a no. in BST 
v. Display its preorder, postorder and inorder traversals Recursively
 vi. Display its preorder, postorder and inorder traversals Iteratively 
vii. Display its level-by-level traversals 
viii. Count the non-leaf nodes and leaf nodes
 ix. Display height of tree
 x. Create a mirror image of tree xi. Check whether two BSTs are equal or not 

15. WAP to convert the Sparse Matrix into non-zero form and vice-versa. 

16. WAP to reverse the order of the elements in the stack using additional stack. CLICK

17. WAP to reverse the order of the elements in the stack using additional Queue.  CLICK

18. WAP to implement Diagonal Matrix using one-dimensional array. CLICK

19. WAP to implement Lower Triangular Matrix using one-dimensional array. 

20. WAP to implement Upper Triangular Matrix using one-dimensional array. 

21. WAP to implement Symmetric Matrix using one-dimensional array.

22. WAP to create a Threaded Binary Tree as per inorder traversal, and implement operations like finding the successor / predecessor of an element, insert an element, inorder traversal.

 23. WAP to implement various operations on AVL Tree.

cbcs computer organization practical assignment


cbcs c practical assignment

 cbcs c practical assignment

1. WAP to print the sum and product of digits of an integer.CLICK HERE
2. WAP to reverse a number.CLICK HERE
3. WAP to compute the sum of the first n terms of the following series S = 1+1/2+1/3+1/4+……CLICK HERE
4. WAP to compute the sum of the first n terms of the following series S =1-2+3-4+5…………….CLICK HERE
5. Write a function that checks whether a given string is Palindrome or not. Use this function to find whether the string entered by user is Palindrome or not.CLICK HERE     
6. Write a function to find whether a given no. is prime or not. Use the same to generate the prime numbers less than 100.CLICK HERE
7. WAP to compute the factors of a given number.CLICK HERE
8. Write a macro that swaps two numbers. WAP to use it.CLICK HERE
9. WAP to print a triangle of stars as follows (take number of lines from user):
10. WAP to perform following actions on an array entered by the user:
 i.Print the even-valued elements
 ii.Print the odd-valued elements
 iii.Calculate and print the sum and average of the elements of array
 iv.Print the maximum and minimum element of array v.Remove the duplicates from the array vi.Print the array in reverse order
The program should present a menu to the user and ask for one of the options. The menu should also include options to re-enter array and to quit the program.
12. Write a program that swaps two numbers using pointers.
13. Write a program in which a function is passed address of two variables and then alter its contents.
14. Write a program which takes the radius of a circle as input from the user, passes it to another function that computes the area and the circumference of the circle and displays the value of area and circumference from the main() function.CLICK HERE
15. Write a program to find sum of n elements entered by the user. To write this program, allocate memory dynamically using malloc() / calloc() functions or new operator.CLICK HERE
16. Write a menu driven program to perform following operations on strings:
a) Show address of each character in string
b) Concatenate two strings without using strcat function
c) Concatenate two strings using strcat function.
d) Compare two strings
e) Calculate length of the string (use pointers)
f) Convert all lowercase characters to uppercase
g) Convert all uppercase characters to lowercase
 h) Calculate number of vowels i) Reverse the string
17. Given two ordered arrays of integers, write a program to merge the two-arrays to get an ordered array. CLICK HERE
18. WAP to display Fibonacci series (i)using recursion, (ii) using iteration
19. WAP to calculate Factorial of a number (i)using recursion, (ii) using iteration
20. WAP to calculate GCD of two numbers (i) with recursion (ii) without recursion.
21. Create Matrix class using templates. Write a menu-driven program to perform following Matrixoperations (2-D array implementation): a) Sum b) Difference c) Product d) Transpose
22. Create the Person class. Create some objects of this class (by taking information from the user). Inherit the class Person to create two classes Teacher and Student class. Maintain the respective information in the classes and create, display and delete objects of these two classes (Use Runtime Polymorphism).
23. Create a class Triangle. Include overloaded functions for calculating area. Overload assignment operator and equality operator.
24. Create a class Box containing length, breath and height. Include following methods in it:
 ) Calculate surface Area              
b) Calculate Volume              
c) Increment, Overload ++ operator (both prefix & postfix)              
d) Decrement, Overload -- operator (both prefix & postfix)              
e) Overload operator == (to check equality of two boxes), as a friend function              
f) Overload Assignment operator              
g) Check if it is a Cube or cuboid Write a program which takes input from the user for                             length, breath and height to test the above class.
25. Create a structure Student containing fields for Roll No., Name, Class, Year and Total Marks. Create 10 students and store them in a file.
26. Write a program to retrieve the student information from file created in previous question and print it in following format: Roll No. Name Marks
27. Copy the contents of one text file to another file, after removing all whitespaces
28. Write a function that reverses the elements of an array in place. The function must accept only one pointer value and return void.
29. Write a program that will read 10 integers from user and store them in an array. Implement array using pointers. The program will print the array elements in ascending and descending order.

CMSACOR01P: Programming Fundamental using C/C++

CMSACOR01P: Programming Fundamental using C/C++

 cbcs c++ practical assignment

1. WAP to print the sum and product of digits of an integer. - CLICK HERE

 2. WAP to reverse a number. CLICK HERE

 3. WAP to compute the sum of the first n terms of the following series S = 1+1/2+1/3+1/4+    CLICK HERE

 4. WAP to compute the sum of the first n terms of the following series S = 1 - 2 + 3 - 4 + 5…   CLICK HERE

 5. Write a function that checks whether a given string is Palindrome or not. Use this function to find whether the string entered by user is Palindrome or not. CLICK HERE

6. Write a function to find whether a given no. is prime or not. Use the same to generate the prime numbers less than 100. CLICK HERE

7. WAP to compute the factors of a given number. CLICK HERE

8. Write a macro that swaps two numbers. WAP to use it. CLICK HERE

9. WAP to print a triangle of stars as follows (take number of lines from user): CLICK HERE
                          *
                       ***
                     *****
                   *******
                 *********

10. WAP to perform following actions on an array entered by the user:  click here
                i.Print the even-valued elements
               ii.Print the odd-valued elements
              iii.Calculate and print the sum and average of the elements of array
              iv.Print the maximum and minimum element of array
               v.Remove the duplicates from the array
              vi.Print the array in reverse order The program should present a menu to the user and ask for one of the options. The menu should also include options to re-enter array and to quit the program.

 11. WAP that prints a table indicating the number of occurrences of each alphabet in the text entered as command line arguments. click here

12. Write a program that swaps two numbers using pointers.click here

13. Write a program in which a function is passed address of two variables and then alter its contents. click here

14. Write a program which takes the radius of a circle as input from the user, passes it to another function that computes the area and the circumference of the circle and displays the value of area and circumference from the main() function. click here

 15. Write a program to find sum of n elements entered by the user. To write this program, allocate memory dynamically using malloc() / calloc() functions or new operator. click here

16. Write a menu driven program to perform following operations on strings: click here
                   a) Show address of each character in string
                   b) Concatenate two strings without using strcat function.
                   c) Concatenate two strings using strcat function.
                   d) Compare two strings
                   e) Calculate length of the string (use pointers)
                   f) Convert all lowercase characters to uppercase
                   g) Convert all uppercase characters to lowercase
                   h) Calculate number of vowels i) Reverse the string

17. Given two ordered arrays of integers, write a program to merge the two-arrays to get an ordered array. click here

18. WAP to display Fibonacci series (i)using recursion, (ii) using iteration click here

19. WAP to calculate Factorial of a number (i)using recursion, (ii) using iteration  click here

20. WAP to calculate GCD of two numbers (i) with recursion (ii) without recursion. click here

21. Create Matrix class using templates. Write a menu-driven program to perform following Matrixoperations (2-D array implementation): a) Sum b) Difference c) Product d) Transpose CLICK HERE

 22. Create the Person class. Create some objects of this class (by taking information from the user). Inherit the class Person to create two classes Teacher and Student class. Maintain the respective information in the classes and create, display and delete objects of these two classes (Use Runtime Polymorphism).CLICK HERE

23. Create a class Triangle. Include overloaded functions for calculating area. Overload assignment operator and equality operator. CLICK HERE

24. Create a class Box containing length, breath and height. Include following methods in it: CLICK HERE
              a) Calculate surface Area
              b) Calculate Volume
              c) Increment, Overload ++ operator (both prefix & postfix)
              d) Decrement, Overload -- operator (both prefix & postfix)
              e) Overload operator == (to check equality of two boxes), as a friend function
              f) Overload Assignment operator
              g) Check if it is a Cube or cuboid Write a program which takes input from the user for                             length, breath and height to test the above class.

25. Create a structure Student containing fields for Roll No., Name, Class, Year and Total Marks. Create 10 students and store them in a file. CLICK HERE

26. Write a program to retrieve the student information from file created in previous question and print it in following format: Roll No. Name Marks. CLICK HERE

27. Copy the contents of one text file to another file, after removing all whitespaces.CLICK HERE

28. Write a function that reverses the elements of an array in place. The function must accept only one pointer value and return void. CLICK HERE

29. Write a program that will read 10 integers from user and store them in an array. Implement array using pointers. The program will print the array elements in ascending and descending order. CLICK HERE

Write a program to demonstrate the use of push buttons.

Write a program to demonstrate the use of push buttons.

Write a program to generate a window without an applet window using main() function.

Write a program to generate a window without an applet window using main() function.

Write a program to demonstrate different keyboard handling events.

Write a program to demonstrate different keyboard handling events.

Write a program to demonstrate different mouse handling events like mouseClicked(), mouseEntered(), mouseExited(), mousePressed, mouseReleased() and mouseDragged().

Write a program to demonstrate different mouse handling events like mouseClicked(), mouseEntered(), mouseExited(), mousePressed, mouseReleased() and mouseDragged().

Write a program to get the URL/location of code (i.e. java code) and document(i.e. html file).

Write a program to get the URL/location of code (i.e. java code) and document(i.e. html file).