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

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

Looking For Something at Site? Search Below

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

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

Latest Activity

Mani Siddiqui Ex posted a discussion
20 minutes ago
Profile Iconsam faisal, Heena Muneer, daniyal ahmed and 19 more joined Virtual University of Pakistan
56 minutes ago
Mani Siddiqui Ex posted a status
""_عورت بیوی ہو, بہن ہو, دوست ہو یا بیٹی اس میں ماں جیسا خیال رکھنے کی خصوصیات ہوتی ہیں_""
1 hour ago
Tasha Malik posted a status
"Eng301 GDB 1, complete and accurate idea solution https://youtu.be/NMckVig0OVs"
1 hour ago
+M.Tariq Malik replied to Fragrance of Islam's discussion ENG301 Business Communication GDB No 01 Fall 2020 Solution / Discussion in the group ENG301 Business Communication
10 hours ago
+!!! ❤️ Shadow Girl❤️!!! replied to Miss. Churhail's discussion $$$$$AB YE SOCHA HY K HAM HAD SE GUZAR JAYEN GY$$$$$$
10 hours ago
maha replied to +M.Tariq Malik's discussion Mid Term Quiz Will Be Conducted Instead Of Mid Term Examinations - Fall 2020 Semester
10 hours ago
+!!! ❤️ Shadow Girl❤️!!! liked Miss. Churhail's discussion $$$$$AB YE SOCHA HY K HAM HAD SE GUZAR JAYEN GY$$$$$$
10 hours ago
maha replied to +M.Tariq Malik's discussion Mid Term Quiz Will Be Conducted Instead Of Mid Term Examinations - Fall 2020 Semester
10 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion FIN630 GDB No 01 Fall 2020 Solution / Discussion Last Date: 27-11-2020 in the group FIN630 Investment Analysis & Portfolio Management
10 hours ago
Aasma kiran commented on +M.Tariq Malik's group ENG301 Business Communication
10 hours ago
Aasma kiran joined +M.Tariq Malik's group
10 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS602 Computer Graphics Assignment 01 Fall 2020 Solution / Discussion Due Date: 04-12-2020 in the group CS602 Computer Graphics
11 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS602 Computer Graphics Assignment 01 Fall 2020 Solution / Discussion Due Date: 04-12-2020 in the group CS602 Computer Graphics
11 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS602 Computer Graphics Assignment 01 Fall 2020 Solution / Discussion Due Date: 04-12-2020 in the group CS602 Computer Graphics
11 hours ago
Rabbani King updated their profile
11 hours ago

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

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

.