Computing.Net > Forums > Unix > shell programs please!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

shell programs please!

Reply to Message Icon

Name: Shobs
Date: May 2, 2003 at 00:43:28 Pacific
OS: Windows
CPU/Ram: P3 450
Comment:

Hey guys,
Ive got to submit my assignments in college next week.
Please help me out with the following progs.
1)write a shell program to generate the first "n" terms of the following sequence without using multiplication.
1,2,4,8,16,32........
2)To search for a number in given list of numbers
3)To reverse a seven digit number and find the sum of all the digits.
4)To sort the given list of numbers in descending order
5)To count the number of positive and negative numbers in a given list.
6)To check whether the given number is a perfect number or not.

Your response will be of great help to me.thanx.



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: May 2, 2003 at 03:09:58 Pacific
Reply:

Please post the scripts that you have written with questions about the specific trouble spots you are having and someone will be glad to help you through the difficult parts.

http://www.computing.net/unix/wwwboard/forum/4881.html


0

Response Number 2
Name: LANkrypt0
Date: May 2, 2003 at 10:39:48 Pacific
Reply:

No offense, but how can you not do number 1? Did you pay attention at all in class, honestly? I can make that in 5 lines, 4 if you dont want a pause between the numbers.
Anyway, as David said, post what you have done, list the trouble spots and the errors you get, and I am sure someone will help you out.


0

Response Number 3
Name: David Perry
Date: May 2, 2003 at 20:05:29 Pacific
Reply:

Sounds like 'name that tune'. I'm getting 5 lines for number 1 with a while loop. I'll need to think differently to hit 4.


0

Response Number 4
Name: peter
Date: May 8, 2003 at 07:18:08 Pacific
Reply:

I hate people like you. I worked hard to get my cs degree, and then morons like you just go out and cheat to get by. well good luck in the real world buddy. Most people get anoyed at people like you, and if you were working for me I would fire you.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: shell programs please!

Unix Shell program www.computing.net/answers/unix/unix-shell-program/3441.html

Unix Shell Program www.computing.net/answers/unix/unix-shell-program/4881.html

shell-programming www.computing.net/answers/unix/shellprogramming/3377.html