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: 2688

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)

Could any one plz tell me about this code? what is the error in this code?

minus sign can not b there.

minus sign is not allowed, the function name is REPLACE

please help me in the following statement:

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.

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service