Saturday, 21 November 2015

ADA Program

Evaluation of ADA Program

The most important aspect of the design of the Ada language is to consider the following.

v     The designs are  competitive, there were no limits on participation.
v     It embodies most of the concepts of software engineering and language design of late 1970s
v     The development of the compile, for the  Ada  language was a difficult task.Ada compilers begin to appear only in 1985th
The drawbacks of Ada were did it was too large, too complex and less reliable.
  
Example of Ada program.

With Ada_text_IO, Ada_Integer, Text_IO;
Use Ada_Text_IO, Ada_Integer_Text_IO;
Procedure is Ada_Ex
Type Int_List_Type is array (1 ... ..99) of integers;
Int_List; Int _List Type;
List_Len, sum, average, Result, Integer;
Begin
Result = 0;
Sum = 0;
Get (List_len)
If int_List (counter)> then Average
Result: = result + 1;
End if;
END LOOP;

  • Ada 95 and Ada 2005
  • Ada 95 Provides Inheritance, Dynamic Binding of subprogram calls to subprogram definition, polymorphism and Encapsulating the shared data among concurrent process.
  • Ada is Mainly used in Both commercial and  defense, air traffic control.







Wireless Sensor Network

Sensor Node hardware: -


  1. An Entire Node Should be smaller than 1cc, weigh less than 100g Cheaper Than US $ 1 and dissipate less than 100 Microw.
  2. Mere size of the node is reduced to the size of the dust
  3. Size of the node is not so important rather convenience, simple power supply and cost are more important
  4. Sensor Node Comprises of 5 main components
  5. Controller: - process all relevant data, capable of executing arbitrary code
  6. Memory: - to store programs and intermediate data; Different types of memory for programs and data
  7. Sensors and Actuators: - actual interface to the physical world; Devices did observe or control physical parameters of the environment.

Evaluation of smalltalk

EVALUATION OF SMALLTALK

Small talk  what The First Programming Language That fully supported object_oriented programming.

DESIGN PROCESS

The concepts of Smalltalk Which originated in the Ph.D work of Alan Kay.
Kay envisioned machines Which were seem to execute a million or more instructions per second and megabytes of memory.
He Believed That desktop computers would be used by non programmers and need very powerful human-interfacing capabilities.
The user Should interact with the display through keystrokes and by Touching the screen with his finger.
Smalltalk-80 and the Xerox hardware nearly matched the early version of Alankay.

LANGUAGE OVERVIEW

In Smalltalk, the objects range from integer constants to larg Complex Software Systems.
All computing is done by the same uniform technique sending a message to to object to invoke one of its methods.
A message is sent to a data object, Specially to one of the methods defined for the object.
A subprogram is a message to the code of the subprogram.
Object classes are abstractions and the instanc of the class can be created.
The syntax of the Smalltalk is different from otherlanguage Because of the use of messages more than arithmetic and logic expression and Conventional control statements.

EVALUATION

It permits two separate aspects of computing.
* Graphical User Interface
* Object Oriented Programming.

EXAMPLE

"Smalltalk Example Program"
 ClassName polygon
Super Class Object
Instance variable name ourpen
Num Sides
SideLength
New
       ^ Super New getpen
Getpen
          Ourpen <- new default pen Nib: 2
Draw
          NumSides times repeat
Length = Len
SideLength <-LEN
Side: num


 Numside <-num