Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.

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

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.

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.

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.

![]() |
![]() |
![]() |

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