Posts

FYBCA SEM 2 C ASSIGNMENT-I

Image
SHRI SHAMBHUBHAI V. PATEL COLLEGE OF C. S. & B. M. F.Y.B.C.A (SECOND SEMESTER) PRACTICAL ASSIGNMENT-I FYBCA SEM 2 C ASSIGNMENT-I  2018 1) Write a program to generate all possible combination of string for a given string. E.g. Input “surat” O/p: surat, urats, ratsu, atsur, tsura. 2) Write a program to read a sentence (containing blank spaces) and display it in toggle case. 3) Write a program to read a sentence. Count the number of capital letter, small letters , special characters and numbers. 4) Write a program to check whether given string is palindrome or not. 5) Write a program to do the following on a given string. I/p: patel shiv kumar O/p:  patel  shiv  kumar 6) Write a program which will read a string and rewrite it in the alphabetical order. For ex:- input=”string” output= “ginrst” Click Here to Download Fybca Assignment 2018

SYBCA SEM 4 JAVA ASSIGNMENT

Image
Programs Assignment – 2018 1. Print 'hello world' in java. 2. Addition of two values passing by command line argument. 3. Write a program to find the result of following expression.     1) a << 2 + b >> 2     2) (a<<2) + (b>>2)     3) a & b     4) a | 4 + a >> b & 7 4. Write a program in java to explain the use of break and continue statements. 5. Create Box class with data members width, height and depth. Objects of this class initializewith zero value or by passing single value. Create a method to calculate volume and display it.   6. Calculate area of square, rectangle and triangle using the three same name methods 'area'; 7. Make CALC class with two data members. Perform addition, subtraction, multiplication and division operation of given two values by user. Initialize both data members with zero. (use menu-driven) 8. Create array with values {8,7,6,5,4} and display it. ...

Unix Awk Script

Image
Awk Script  1. Print Even number of words in each line from file Ans. awk '{for(i=1;i<=NF;i++) if(i%2==0) printf("%s ",$i) else continue printf("\n") }' file1 O/P:-= is command file created awk {file1:- this is awk command example this file is created for awk } 2. Display words having length greater than 10 and consists of digit. Ans. awk '{for(i=1;i<=NF;i++) if(length($i)>10) if(int($i)) printf("%s ",$i) else continue printf("\n") }' file2 O/p: 12345678912 {file2: this is number file 123445 123456789 hcd kkd 72 7832 12345678912 1234156789 124 edne 124de edj 12dw ds5 asjkdeyfendj fdej kjd faiuendhgej dk fdkfj87fdnj77n dfjn jhfd hude7634bfdef }

Solved UNIX ASSIGNMENT-4 New

Image
UNIX ASSIGNMENT-4 Solved Tutorial - 4 Subject : Unix & Shell Programming 1.      write a shell script to copy one file into other, display appropriate message if destination file already exist. Script: echo "Enter source filename: " read sname echo "Enter destination filename: " read dname if [ -f $sname ] then         if [ -f $dname ]         then                 echo "Destination file already exists"                 echo "Do You want to overwrite the file?(y/n)"                 read ans                 if [ $ans = 'Y' -o $ans = 'y' ]           ...

Unix Tutorial3 Ans

Unix Tutorial3 Solved 1. Write a command to display content of top three largest file in a working directory. cat `ls -lS | grep -v '^d' | head -n 4 | tail -n 3 | tr -s ' ' | cut -d ' ' -f 9` 2. Count no of words in lines 40 thrugh 60 of file f1.txt sed -n '4,8p' t1 | wc -w 3. Display all filenames not begining with "." find . -maxdepth 1 -type f ! -name '.*' -print 4.Delete all special characters from file f1. tr -cd '[a-zA-Z0-9 \n]' < t1 5.Display i-node no of all files of current directory. find . -maxdepth 1 -type f -ls 6.Display those lines of file f1 that contains exactly 50 characters in it. grep -E '^.{13}$' t1 7. Replace "hello" with "HELLO" in input file fin.sh and write those lines to output file fout.sh. tr 'hello' 'HELLO' < t1 > fout.sh 8.Extract all usernames and their home directories from /etc/passwd. cat /etc/passwd | cut -d ':' -f 1,6 9.Locate lines o...

Asp.Net ASSIGNMENT

Image
ASP.NET ASSIGNMENT Asp.NET Final File Practical Assignment 1. .Asp.net web server control 2. Asp.net validation control 3. Asp.net html web server control 4. Drop down list application (country,state,city) 5. Master page 6. Themes 7. Repeater control with example 8. Site map path control with example 9. College management  

UNIX ASSIGNMENT-4

Image
UNIX ASSIGNMENT-4 Tutorial - 4 Subject : Unix & Shell Programming 1.     write a shell script to copy one file into other, display appropriate message if destination file already exist. 2.     write a shell script to find a file with maximum size in the current directory, also print the no. of words , characters, and lines along with the contents of file. 3.     write a shell script to display date, calender, current directory and list of files using case statement. 4.     write a shell script to change all .a extension file to .b in current directory. 5.     write a shell script to display currently logged in users and not log in users. 6.     write a shell script to display all files of directory without using ls. 7.     write a shell script to display message “good morning” or “good afternoon” or “good evening”, whenever you login. 8.     write a shell script to...