We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Assignment No. 01
SEMESTER Spring 2016
CS508- Modern Programming Languages

 

Total Marks: 20

 

Due Date: 18/05/2016

Instructions

Please read the following instructions carefully before solving & submitting assignment:

It should be clear that your assignment will not get any credit  if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file corrupt.
  • The assignment is full or partially copied from (other student or ditto copy from handouts or internet).
  • Student ID is not mentioned in the assignment File or name of file is other than student ID.
  • The assignment is not submitted in .doc or .docx format.

Uploading instructions

Your submission must include:

 

  • Assignment should be in .doc or .docx format.
  • Save your assignment with your ID (e.g. bx020200786.doc).

Assignment submission through email is NOT acceptable

Objective

The objective of this assignment is

  • To give knowledge and understanding of syntax and semantic of Programming languages.
  • To be able to understand the basics of SNOBOL programming language.

 

Note:

Your answer must follow the below given specifications.

  •  Font style: “Times New Roman”
  •  Font color: “Black”
  •  Font size: “12”
  •  Bold for heading only.
  •  Font in Italic is not allowed at all.
  •  No formatting or bullets are allowed to use.
  • Your answer should be precise and to the point, avoid irrelevant detail.

 

Lectures Covered: This assignment covers Lecture # 01 - 12

Deadline

Your assignment must be uploaded/submitted at or before 18/05/2016.

 

 

 

 

 

Question: 01           10( 2+2+2+2+2) marks     

 

The study of programming languages can be divided into the assessment of their syntax and semantics while different constructs are the building blocks of these languages.

You are required to differentiate between syntax and semantics in your own words and write the syntax and semantics for the following constructs.

  1. While Loop
  2. If statement
  3. GOTO statement
  4. Array

 

Note: Do not specific to any language; you may use any language for syntax (or use general syntax).

      

 

Question: 02           10 (05 + 05) marks

 

SNOBOL language is mainly designed for string manipulation and handling, therefore, it has rich string manipulation mechanism and operators.

  1. Write a program in SNOBOL which define variables for street number, City name and District name. Use string concatenation operator which combine the values of all these variables in a new variable Address and print on the console.
  2. Write a program in SNOBOL which define a variable and store the string “I am a student of MCS”. Use pattern matching operator and GOTO statement to print “Pattern found” if the pattern matched otherwise “Pattern not found” on the console.

 

Note:  You need to write the code in an MS word file, furthermore, you do not need to compile programs, however they should be correct syntactically.

 

 

=====================================Ended=======================================

 

For any query about the assignment, contact at CS508@vu.edu.pk

 

GOOD LUCK

 

 

 


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 2577

Replies to This Discussion

b. Write a program in SNOBOL which define a variable and store the string “I am a student of MCS”. Use pattern matching operator and GOTO statement to print “Pattern found” if the pattern matched otherwise “Pattern not found” on the console.
Answer:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("I am a student of MCS");
goto End;
NotFound:
Console.WriteLine("Pattern not found!");
End:
Console.ReadKey();

}
}
}

can u please upload the complete solution?

thanxxxxxxxxxxxxxxxxxxxxxxx alot  this really safe me

u have complete solution that i made with my own but i upload only a program because it is the hardest part of the assignment. Baqi khud se banao bhei

question 1 ha'hardest
'

yar semantic kia ha while ka syntax to likh liya ha lekin semantic smjh ni a rhi bta do plz

can you please upload question 2 (a) part. i only need that part.

send part 2 i send u part 1

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { Console.WriteLine("I am a student of MCS"); goto End; NotFound: Console.WriteLine("Pattern not found!"); End: Console.ReadKey(); } } } Read more at http://vustudents.ning.com/forum/topics/cs508-assignment-no-01-spri...

to teek ha yar

RSS

Looking For Something? Search Below

Latest Activity

Mani Siddiqui Ex posted a status
":محفل میں فرشتے ہی فرشتے نظر آئے ہم نے فقط پوچھا تھا گناہ گار کون ہے......."
54 minutes ago
+ ! ! Μiᣵᣵ ƇỻປᎱꚔลiɭ ! ! + replied to Ammara Sabir's discussion !!!!!!Muhabbat!!!!!!
1 hour ago
+ ! ! Μiᣵᣵ ƇỻປᎱꚔลiɭ ! ! + liked + ! ! Μiᣵᣵ ƇỻປᎱꚔลiɭ ! ! +'s discussion @@@ Chal Peer Sain koi ayat phoonk Koi essa Isam e Azam parh @@@
1 hour ago
+ ! ! Μiᣵᣵ ƇỻປᎱꚔลiɭ ! ! + posted discussions
1 hour ago
+ ! ! Μiᣵᣵ ƇỻປᎱꚔลiɭ ! ! + commented on +!!★彡 Alan Walker彡★✓'s blog post Difference between weak, strong and intelligent human being....
1 hour ago
Ammara Sabir replied to Ammara Sabir's discussion !!!!!!Muhabbat!!!!!!
1 hour ago
+ ! ! Μiᣵᣵ ƇỻປᎱꚔลiɭ ! ! + liked zohaib iftikhar's blog post ...* LUQMA ...*
1 hour ago
+ ! ! Μiᣵᣵ ƇỻປᎱꚔลiɭ ! ! + liked zohaib iftikhar's blog post ...* MUHAMMAD SAWW K BARY MAIN KUCH NAZRIYAT ...*
1 hour ago
+ ! ! Μiᣵᣵ ƇỻປᎱꚔลiɭ ! ! + liked zohaib iftikhar's blog post ...* SAME CALENDER 2021 AS 1971 ...*
1 hour ago
+ ! ! Μiᣵᣵ ƇỻປᎱꚔลiɭ ! ! + liked zohaib iftikhar's blog post ...* GUFTAGU KAISI HO ???...*
1 hour ago
+ ! ! Μiᣵᣵ ƇỻປᎱꚔลiɭ ! ! + liked ≋M≋S≋'s blog post MERE ASHAAR SUNANA
1 hour ago
+ ! ! Μiᣵᣵ ƇỻປᎱꚔลiɭ ! ! + liked ≋M≋S≋'s blog post AB DIL BUJHA BUJHA Hai
1 hour ago

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

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

.