By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,420 Members | 1,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,420 IT Pros & Developers. It's quick & easy.

a couple of scripts

P: 53
the first one!

1) takes vaule 1 as a command line parameter
2) takes vaule 2 as a command line parameter
3) outputs a result which adds vaule 1 to itself vaule 2 number of times .

the FIRST script should use a while loop, the SECOND should use a for loop

it the same stuff just two diffrent ones but they use two diffrent types of loops.


Another script

1)asks the user to input a vaule by prompting the user for input
2)if the vaule is "Aaayy", prints out I'm Fonize"
3)if the vaule is "Nerd", prints out I'm Cunningham!"
4)if the vaule is anything else, prints out "Um, try again! and exits the program


the FIRST script should use if-then-else combinations, the SECOND should use a case block

I need help really really bad!
Thanks
Dec 11 '07 #1
Share this Question
Share on Google+
1 Reply

numberwhun
Expert Mod 2.5K+
P: 3,503
the first one!

1) takes vaule 1 as a command line parameter
2) takes vaule 2 as a command line parameter
3) outputs a result which adds vaule 1 to itself vaule 2 number of times .

the FIRST script should use a while loop, the SECOND should use a for loop

it the same stuff just two diffrent ones but they use two diffrent types of loops.


Another script

1)asks the user to input a vaule by prompting the user for input
2)if the vaule is "Aaayy", prints out I'm Fonize"
3)if the vaule is "Nerd", prints out I'm Cunningham!"
4)if the vaule is anything else, prints out "Um, try again! and exits the program


the FIRST script should use if-then-else combinations, the SECOND should use a case block

I need help really really bad!
Thanks
I am sure, but that is why you have a text book to go along with your school work. It is against the Posting Guidelines here on TSDN to post homework, especially when expecting a solution to your problem without putting forth any effort.

This is your schoolwork and you are going to have to do it. We can help you when you get stuck, but you will have to post code first. Whatever shell you are using for this, go ahead and read its man page.

Regards,

Jeff
Dec 12 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.