English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1. to generate squareroot of any number entered through keyboard.

2. to check whether a given file is readable and writeable or both.

3. to check whether a given date is valid or not.(date format ddmmyy)

4. prog. to search multiple words per line.

2006-09-11 07:29:33 · 3 answers · asked by benam 1 in Computers & Internet Programming & Design

3 answers

This is not the right place for lazy students....
Go and get your book,work out,learn..
Have a nice Day

2006-09-11 09:02:47 · answer #1 · answered by Ranjith 3 · 1 1

Again, this would best be done by using Perl. A tutorial can be found at http://www.comp.leeds.ac.uk/Perl/basic.html.

I don't know if Perl has a square root function, but you can just use whatever power function (i believe it is **) to raise a number to the 1/2.

2 - you just have to try to open the file for reading, and then for writing and test if its successful or not. you can't rely on the `ls -al` command unless you have which group and user you are readily available to match

3 - there are string manip functions

4 - see 3.

2006-09-11 09:15:00 · answer #2 · answered by John J 6 · 0 1

Go through UNIX programming by DASS.
You will find most of these purpose commands. Check it first.

2006-09-15 02:25:55 · answer #3 · answered by A D I T Y A 2 · 0 0

fedest.com, questions and answers