CS508 Assignment 02 Solution Spring 2013 Due Date: 16/5/2013 Modern Programming Languages

No Comments

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.

Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment