Tuesday , 3 December 2024

CS508 Assignment no 02 Spring 2013

 

Assignment No. 02
Semester: Spring 2013
Modern Programming Languages  (CS508)

 

Total Marks: 15

 

Due Date:  16/5/2013

 

Instructions:

Please read the following instructions carefully before submitting assignment:

 

  • You will submit your assignment before or on due date on VU-LMS.
  • Assignment should be completed by your own efforts it should not be copied from internet, handouts or books.
  • You should submit your MS Word File via assignment interface at VU-LMS.
  • Assignment sent via Email will not be replied and accepted/graded in any case.
  • If the submitted assignment does not open or file is corrupt, it will not be graded.
  • You will submit solution only in Microsoft Word File.

 


Objectives:

 

To understand and familiarize with SNOBOL Language.

 

 

For any query about the assignment, contact at cs508@vu.edu.pk or through MDB.

Assignment Questions

 

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%20Simple%20SNOBOL%20Program.pdf and run your code written in Question # 2 Part I. Then send the screen shot of the output. As shown below [6 Marks]


CS508 Assignment no 02 solution spring 2013

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

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

BEST OF LUCK

 

 

Check Also

CS508 Assignment no 03 fall 2013 idea Solution

  Assignment No. 03 Semester: Fall 2013 Modern Programming Languages  (CS508)  Total Marks: 15   …

One comment

  1. Share your Ideas here…………..

Leave a Reply

Your email address will not be published. Required fields are marked *

*