www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# Assignment No. 02 Modern Programming Languages Due Date: 16/5/2013

Question # 1                                                                                                                              Marks 5

Identify and correct the errors in the following SNOBOL code lines. If the code is correct just mention that code is correct.

1. var  = 28 * 13+2
2. This.is.null.string = NULL
3. MONTH = ‘MAY’
4. RE-PLACE(STRING, ST1, ST2)
5. SEAT   = ROWNO + 6 /2

Question # 2                                                                                                                              Marks 10

I) Write down a SNOBOL Program that will display your Name and VU Student ID  [4 Marks]

II) Go through the tutorial given at http://vulms.vu.edu.pk/Courses/CS508/Downloads/How%20To%20Run%20A%2... and run your code written in Question # 2 Part I. Then send the screen shot of the output. As shown below [6 Marks]

To produce the above screen shot save code which you have written in question file in a text file, save it as A2.NSO, and then you will run it as mentioned in the tutorial in above link and take its screenshot. After that paste that screen shot in the assignment solution file.

Note:-

You will send your solution in word file No need to send .SNO file.

Views: 2699

Attachments:

### Replies to This Discussion

Thanks a lot. I have got it!

imran bahi r u there , can u help me plz?

and if you have still the problem then tell me

1. RE-PLACE(STRING, ST1, ST2)

minus sign can not b there.

minus sign is not allowed, the function name is REPLACE

SEAT  = ROWNO + 6 /2

is it correct or there should be space after division sign also, I am confused

there is no space between ROWNO .

and there should be space in /2.

Thank you :)

1. SEAT  = ROWNO + 6 / 2
2. now it is true.there should bi space after division operator

i think it is true

plz can anyone help me u have window7 64-bit now the SNOBOL\$ is not working in it.

use cmd .

code will work.

1

2

3

4

5

## VIP Member Badge & Others

------------------------------------

## Latest Activity

BSCS (ex VU student) posted a discussion

### Need help from MS Students...

5 hours ago
Honey Chaudhary posted a video

### Aagy barhty hain

5 hours ago
Honey Chaudhary posted a blog post

### Mard ka har lrki py marny ka shooq

5 hours ago
+ "αяsαℓ " Ќąƶµяɨ •" and + ♥ Haniya khan are now friends
5 hours ago
Zohaib Hassan replied to 刀のの尺's discussion Aԃαƙαɾι
7 hours ago

7 hours ago
Laila kabeer liked 刀のの尺's discussion Sԋαყαɾι ιʂԋϙ ԋαι ɱҽɾα
8 hours ago

8 hours ago