Documentos de Académico
Documentos de Profesional
Documentos de Cultura
WASS which shows your current location, users who r logged in, your terminal
type and log name?
2. WASS that asks for your name & then displays a welcome message
3. WASS that asks for your name, your enrolment number, subjects (5), program,
and semester and display all the details?
4. WASS where you read a number n, if the number is less than 10 display discount
5% and if number is greater than 10 then display discount 20%?
5. WASS that asks for your name, age, department, course & address & display
them.
7. WASS that checks whether a particular file exists or not. If it exists then copy its
contents to another file.
8. WASS that checks whether the file exists or not. If yes then rename that file to
“filename.terminal_line_number”?
9. Enter 2 file names in the command line then copy the source file to target file?
10.WASS that checks whether the file exists or not. If yes then rename that file to
“filename.logname”?
11.WASS in which you have to copy a source file to target. This source & target are
given by cmd line if this copy is successful then echo the msg “Successful copy
of the source file” else “File not copied: Error.”
13.WASS that accepts the existing directory name as a parameter and open the
directory, check the location and create a file and list the directory?
14.WASS that checks the total number of parameter passed to a shell script?
15.WASS that add, subtract, multiply, divide and modulas when A and B values are
defined?
a. Salary HRA DA
d. The employee input is through the keyboard WASS to find his Gross
Salary?
17.WASS which takes the name, roll number, marks and calculate percentage of the
student. If percentage is greater than equal to 75% then display “DISTINCTION”,
greater than equal to 60% then display “1st Div”, if greater than equal to 50% “
2nd div”, if greater than equal to 40% display “3rd Div”, less than 40% display
“FAIL”?
18.WASS where you enter a year and check whether its leap or not?
19.WASS to calculate the sum of the digits of a 5 digit number and display the
reverse of the digit?
22.Enter a file name frm a command line that checks whether it is an ordinary file
or directory file. If it is a directory file then echo the message and check the
required permission to list the directory or if it is a ordinary file. Then check the
required permission to display the content of the file.
23.Enter a file name, take the input as a file name. Check the whether the file is a
directory and check the required permission to create a subdirectory in that
directory and if it is not a directory check the required permission to edit the file.
If permissions r there then echo the message and append the file. If permission
is not there then give the permission and append?
24.Find the factorial of the given number through argument or within the program.
26.WASS which checks the name of each file in your directory & if it is an ordinary
file rename it to filename.logname if it’s a directory rename to
filename.groupname.
27.WASS where you display the table of a number entered through command line.
28.Write a menu driven program which works with the foll. Choices:-
Choice 1. Display the current working directory.
Choice5. Display the list of all the files in your directory in reverse
sorted order.
Choice 6. Display the list of all the users who have logged in at that
time.
Choice5. Exit
If the day entered is Friday, Display the message – Day to take backup
of all the files.
b. Whether the name entered starts with small case or upper case.
32.WASS using case structure where you enter a character & check