11-21-2012, 03:13 PM
CS508 Modern Programming Languages Assignment No.2 Fall Semester 2012
Modern Programming Languages (CS508)
FALL 2012
Assignment No. 2
Total Marks: 20 Dead line: 20th Nov, 2012
Purpose of Assignment:
Intended purpose of this assignment is to give students an exercise that can facilitate them
while working in any professional software development environments. After attempting
this assignment students will be able to:
Familiarize with the core concepts of a special purpose programming language
‘SNOBOL’ which is used for string manipulation and handling.
Learn language basic syntax.
Students will get comprehensive understanding of important concepts of
SNOBOL i.e. Concatenation, Pattern Matching, Replacement and etc.
Application:
IdevSpot-Solutions for Software Companies
IdevSpot provides a range of innovative and reliable eBusiness softwares for companies
intending to start their own online business and earn profits by offering membership
services.
IdevSpot is specifically designed for software markets, It‟s scalable and integrated
solution includes a full-featured, modular and secure eCommerce platform, a partner
order and revenue management system, as well as a constantly expanding worldwide
affiliate network.
IdevSpot market-proven eCommerce solution enables software companies to rapidly
embrace industry shifts, reach customers effectively, and adopt new business models with
a view to optimizing profitable revenue across online and offline channels.
Scenario:
IdevSpot- String Manipulation Library
IdevSpot wants to develop a stand alone library application named IdevSpot- String
Manipulation Library. It adds a set of general purpose functions to the scripting
languages. The main features are as follow:
Significantly simplified string manipulation
High performance interoperability with other source/libraries
Improved overall performance of common string operations
Evaluation:
IdevSpot-Software Development team has decided to use SNOBOL language to develop
this library. Now being a part of this project answer the following questions:
A. The project team faces some issues while developing this library. According to
you what can be the reasons for these issues? [5] B. Write the value of OUTPUT variable: [10]
a. OUTPUT = 3 * (12 + 3)
b. OUTPUT = 10 / 2 * 5
c. OUTPUT = 24 / 4 / 2
d. OUTPUT = 2 ** (2 ** 4)
e. OUTPUT = 14 + ' 54'
f. OUTPUT = 'ONE,' 'TWO,' 'THREE'
g. OUTPUT = (20 - 17) ' DOG NIGHT'
h. OUTPUT = 19 (12 / 3)
i. ABC = 'EGG'
D = 'SHELL'
N1 = 43
D = 17
OUTPUT = N1 + D
OUTPUT = ABC D
j. A = „PUT‟
B = 6
OUTPUT=„OUTPUT655‟ A B
C. Write a simple SNOBOL statement that replace monkey with tiger and then
remove all tigers‟ words from the given paragraph. [5]
“A monkey is in a room. Suspended from the ceiling is a bunch of bananas, beyond the
monkey's reach. However, in the room there are also a chair and a stick. The ceiling is
just the right height so that a monkey standing on a chair could knock the bananas down
with the stick.”
Instructions:
It should be clear that your assignment will not get any credit if:
o The assignment is submitted after due date.
o The submitted assignment does not open or file is corrupted.
o All types of plagiarism are strictly prohibited.
You should consult recommended books to clarify your concepts and can also put
queries on MDB.
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
