473,322 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

a couple of scripts

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
1 1269
numberwhun
3,509 Expert Mod 2GB
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

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

Similar topics

3
by: Michele Simionato | last post by:
Is there a simple way to get the path to the Python Tools/scripts directory? Currently I have defined by hand an environment variable such as ...
9
by: Jeff Wagner | last post by:
I have a project of converting numerous DOS cmd shell scripts to Python. Is there a tutorial to getting started? Thanks, Jeff
2
by: RJ | last post by:
We currently send product releases to our customers, and often have to include scripts that need to be ran on the Oracle databases (also do it for SqlServer customers, but we use a different set of...
6
by: Alex Vilner | last post by:
Hello! We have a set of individual .SQL scripts which we would like to execute against a MS SQL Server 2000. Is there any way to have ISQL utility (or any other means) to execute all of them...
7
by: ergobob | last post by:
Hello, I have two small PHP scripts running on a test page at: http://www.usernomics.com/ergonomic-products-accessories5.html Both scripts work perfectly when there is one script on a page....
8
by: Mike Nau | last post by:
We currently have all of our schema and testdata laid out in a large set of sql scripts. It currently takes about 15 minutes to run the scripts on a Dual 1.7ghz box with 1gb of ram. Does...
1
by: ponsibabu | last post by:
We have several scripts for sale. We are selling them at reasonable prices and willing to work around your budget. For more information please contact totascriptz@yahoo.com with "Scripts" as...
8
by: Alan Isaac | last post by:
Suppose I have a directory `scripts`. I'd like the scripts to have access to a package that is not "installed", i.e., it is not on sys.path. On this list, various people have described a variety...
3
by: shapper | last post by:
Hello, I am working on a web site where I have a master page. Most web site pages use this master page as base. Some scripts are used in all pages ... other just in a few pages. Should I load...
2
by: Hugh | last post by:
The PyGUI website specified this place as the place for general discussion about it, so here goes.... First off - thanks for something that is so straightforward to get running on OSX... I've...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.