Modularity And Reliability For An Application-Modern Programming Languages-Assignment Solution, Exercises of Programming Languages

I am student at Baddi University of Emerging Sciences and Technologies. To help my friends in other universities, I am uploading my solved assignments of different courses. Its for Modern Programming Languages course. Other can see if they are searching following: Enterprise, Maintenance, Language, Distributed, Ada, Reliability, Modularity, Invocation, Environment

Typology: Exercises

2011/2012

Uploaded on 08/01/2012

parmitaaaaa
parmitaaaaa 🇮🇳

4.2

(111)

173 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Modern Programming Languages (CS508)
SPRING 2012
Solution Assignment No. 2
Total Marks: 20 Dead line: May 04, 2012
Application:
AlstraSoft E-Friends
Scenario:
Suppose you are developing an online first-degree friendship building social network for
E-friends application at Alstrasoft Pvt Ltd that strive to be the premier provider of web-
based software solutions for businesses worldwide. As a web development and software
company, Alstrasoft specialize mainly in web design and software programming.
Evaluation:
Now In the same E-friends application you are required to develop a payment processor
system EPay Enterprise’, with the growing demand for online payment processing
business similar to Paypal. In this application maintenance typically puts strain on your
organization's resources. So language of choice here would be a structured, statically
typed imperative computer programming language like ‘Ada’.Another important thing to
note here is that you are working in a distributed team with different developers at
different locations.
a) How Ada encourages good programming practices by incorporating Reliability’ and
‘modularity’. [5]
Solution:
Ada is a programming language designed to support the construction of long-lived,
highly reliable software systems. The language includes facility to define packages of
related types, objects, and operations. The packages may be parameterized and the types
may be extended to support the construction of libraries of reusable, adaptable software
components. The operations may be implemented as subprograms using conventional
sequential control structures, or as entries that include synchronization of concurrent
threads of control as part of their invocation. The language treats modularity in the
physical sense as well, with a facility to support separate compilation.
docsity.com
pf3

Partial preview of the text

Download Modularity And Reliability For An Application-Modern Programming Languages-Assignment Solution and more Exercises Programming Languages in PDF only on Docsity!

Modern Programming Languages (CS508)

SPRING 2012

Solution Assignment No. 2

Total Marks: 20 Dead line: May 04, 2012

Application:

AlstraSoft E-Friends

Scenario:

Suppose you are developing an online first-degree friendship building social network for E-friends application at Alstrasoft Pvt Ltd that strive to be the premier provider of web- based software solutions for businesses worldwide. As a web development and software company, Alstrasoft specialize mainly in web design and software programming.

Evaluation:

Now In the same E-friends application you are required to develop a payment processor system ‘EPay Enterprise’, with the growing demand for online payment processing business similar to Paypal. In this application maintenance typically puts strain on your organization's resources. So language of choice here would be a structured, statically typed imperative computer programming language like ‘Ada’.Another important thing to note here is that you are working in a distributed team with different developers at different locations. a) How Ada encourages good programming practices by incorporating ‘Reliability’ and ‘modularity’. [5]

Solution:

Ada is a programming language designed to support the construction of long-lived, highly reliable software systems. The language includes facility to define packages of related types, objects, and operations. The packages may be parameterized and the types may be extended to support the construction of libraries of reusable, adaptable software components. The operations may be implemented as subprograms using conventional sequential control structures, or as entries that include synchronization of concurrent threads of control as part of their invocation. The language treats modularity in the physical sense as well, with a facility to support separate compilation.

Modularity: Ada formally support the modularity and hence make good program practice so that different program developers can work at the same time on different modules of a program this make program development much faster. This language organizes code into self-contained units that can be planned, written, compiled, and tested separately; this feature allows programs to be written in portions by teams working in parallel before being integrated into the final product. So working in distributed programming environment where different developers are working at different locations there is strong need of modularity.so a system components can easily be divided or separated anywhere in this language and then can be combined later on.

Reliability: Reliability means that a program does not deviate from the expected behavior under all the circumstances. It facilitates reuse and the development of large applications. These characteristics increase the software's reliability.Ada strong typing detects errors more easily in both initial and separate unit compilations. Ada's exception handling mechanism supports fault-tolerant applications by providing a complete and portable way of detecting and gracefully responding to error conditions. Ada's tasking features support parallelism using high-level constructs instead of ad-hoc, error-prone calls to operating system primitives.

b) Developing a signup form for users, define and declare variables for following two fields shown in diagram using Ada language [5]

Solution:

For Suite or Apt# field:

Suite_Apt : String(1-100); Apt_Number : String(1-100);

For City field: City: Unbounded_String;

Note: Variable name can be any of your choice but first comes variable name then its data type: VariableName : DataType ;