The document outlines a comprehensive list of programming tasks for a Computer Science curriculum, covering a variety of topics including binary operations, matrix manipulations, sorting algorithms, and data structures. Each task specifies the requirements for implementing various algorithms and functionalities, such as finding evil numbers, performing matrix multiplication, and managing linked lists. The tasks are designed to enhance students' coding skills and understanding of fundamental programming concepts.
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 ratings0% found this document useful (0 votes)
7 views5 pages
practical-II_ISC[1]
The document outlines a comprehensive list of programming tasks for a Computer Science curriculum, covering a variety of topics including binary operations, matrix manipulations, sorting algorithms, and data structures. Each task specifies the requirements for implementing various algorithms and functionalities, such as finding evil numbers, performing matrix multiplication, and managing linked lists. The tasks are designed to enhance students' coding skills and understanding of fundamental programming concepts.
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/ 5
Department of Computer Science
Program List-II ISC
1. Time to words-Text book (statements) 2. Lucky Numbers 3. Day on particular date 4. Write a program to enter any number from 2 to 5(both inclusive) and print all the combinations of digits starting from 1 to that number .Thee should be one blank space between each digit and each new combination should appear on a new line. Also display the total number of combinations formed for the given input.
5. To add two binary numbers
6. An Evil number is a positive whole number which has even number of 1’s in its binary equivalent. Example: Binary equivalent of 9 is 1001, which contains even number of 1’s. Thus, 9 is an Evil Number. A few Evil numbers are 3, 5, 6, 9.... Design a program to accept a positive whole number ‘N’ where N>2 and N <100. Find the binary equivalent of the number and find whether the number is evil or not evil number. 7. Create a single subscripted array of n>0 integers. Get the elements of the array from the user(to be validated).Rearrange the same array (do not use another array) in such a manner that the greatest number should be placed at the middle, to its right second greatest, on the left side of greatest ,third greatest and so on. 8. Matrix multiplication. 9. Find the mirror image and sort the middle columns with any standard technique for a 2- d array 10. Accept a 2-d array and display the elements spirally (inside to outside) 11. Find the transpose of a given matrix in which the elements entered should have only prime numbers and display the non-boundary and boundary elements elements of the transposed matrix. 12. Write a program that inputs the names of people in to different arrays, A and B. Array A has N number of names while array B has M number of names, with no duplicates in either of them. Merge arrays A and B in to a single array C, such that the resulting array is sorted alphabetically. Display all the three arrays, A, B, and C, sorted alphabetically. 13. Input a positive number n and print the possible consecutive natural number combinations, which are added to result in n. e.g., n=9, output: 4+5, 2+3+4 N=15 , output : 7+8, 4+5+6, 1+2+3+4+5 14. Find the next date by checking for date validity. 15. Base program-(text book, statements) 16. Accept an integer array and implement insertion by accepting the number to be inserted and the location at which it has to be inserted from the user and deletion by either taking the number to be deleted or the location. 17. Write a program to accept a string shift by 2 for odd word and reverse the even word, find the longest and replace all the vowels by ‘A’ and find the palindrome for each substring in the original string 18. Write menu driven program to apply bubble, selection, insertion sort for an integer array and a string. 19. Write a program to input a string and find and display the number of words, number of vowels, number of upper cases, frequency of each character in the string, frequency of each word. 20. Accept a square 2-D array where n>3 .Perform the following using a menu (i) Swap the ist and last row of a given matrix. (ii) Display the highest value from each column (from original matrix) (iii) Display the lowest value from each row (from original matrix) 21. Input a paragraph ‘n’ number of sentences where (1<=n<4). The words are to be separated with a single blank space and are in upper case. A sentence may be terminated by ‘.’ Or ‘?’, any other may be ignored. Perform the following. (i) Accept the sentences. If the number of sentences exceeds the limit, an appropriate error message must to be displayed. (ii) Find the number of words. (iii) Display the words in ascending order of their frequency. Words with same frequency may appear in the order of their occurrence in original sentence. 22. The security department of a company has decided to have codes containing a jumbled combination of alternate uppercase letters of the alphabet starting from A up to K(namely A,C,E,I,K).The code may or may not be in the consecutive series of alphabets. Each code should not exceed 6 characters and there should be no repetition of characters. If it exceeds 6 characters, display an appropriate error message. Write a program to input a code and its length. Display the appropriate message as Valid or Invalid. E.g. (1) N=4 (2) N=3 (3) N=5 (4) N=7 ABCE ACE GEAIK Output: length exceeded! Output: Invalid Output: Valid Output: Valid 23. An encoded text is decoded by adding 2 in a circular fashion in the ASCII code in each alphabet ,other than alphabets ignored will not be taken in to consideration(e.g. A is C, B is D,…..Z is B).Whenever a pair of KK occurs ,it is taken as a single blank. If there are more than 1 pair of KK in consecutive, can be taken a single blank. Write a program to read an encoded text in capital maximum 200 characters, decode it. The first letter of each word should be in capital and rest in small. Numbers may be ignored. E.g. (1) input: ZCQRKKMDKKJSAI (2) input: J9Y65NKKKKR122MN Output: Best Of Luck OUTPUT: Lap Top 24. Decode the words (should end only with a full stop, question mark or exclamation mark (!)) according to their potential and arrange them in ascending order of their potential strength (The potential of a word is found by adding the ASCII value of the alphabets. (ASCII values of A to Z are 65 to 90). Example: BALL Potential = 66 + 65 + 76 + 76 = 283) E.g. HOW DO YOU DO? Output: HOW=238, DO=147, YOU=253, DO=147 DO DO HOW YOU 25. Accept a 2-d array, perform the following from original matrix (i) find the sum of diagonal elements. (ii) Replace the principle diagonal element with zero. (iii) Display the upper triangle matrix (upper elements of the principle diagonal) and replace it with # symbol. 26. A super class Worker has been defined to sore the details of worker (name and basic).Define a subclass Wages (hrs, rate, wage, over time) to compute the monthly wages for the worker. wage= overtime amount +basic pay, overtime amount=hrs * rate. Write a program applying inheritance using constructors for both the classes. 27. Write a menu driven program to implement linked list by adding node to the beginning, middle, end and deleting a node from the beginning, middle, and end. 28. Write menu driven program to implement Merge and quick sort. 29. Program to convert decimal to hexa decimal using recursion. 30. Write a menu driven program to add and delete an element to the stack and queue using array