Contents:
Module 1: Introduction to Ada Programs
Module 2: Basic Control Structures
Module 3: Subprograms
Module 4: Atomic Types – Integer, Enumeration, Real Numbers
Module 5: Composite Types – Arrays & Strings
Module 6: Composite Types – Records
Module 7: Atomic Types – Access Types (Pointers)
Module 8: Packages for Programming in Large
Module 9: Exceptions
Module 10: Low-Level Programming
Module 11: Pragmas
enumeration type (including boolean) ==> Ada.Text_IO.ENUMERATION_IO() (type, is)
signed integers ==> Ada.Text_IO.INTEGER_IO() (type, is, range)
modular integers (unsigned integers) ==> Ada.Text_IO.MODULAR_IO() (type, is, mod)
------------------
floating point ==> Ada.Text_IO.FLOAT_IO() (type, is, digits, range)
ordinary fixed point ==> Ada.Text_IO.FIXED_IO() (type, is, delta, range)
decimal fixed point ==> Ada.Text_IO.DECIMAL_IO() (type, is, delta, digits, range)
-----------------
array/strings - type, is, array, of
record - type, is, record, end
access - type, is, access
-------------------
unconstrained array, functions with array as parameters, strings
-----------------
0.0 0.1 0.2 0.3
0.16 ==> 0.04
0.15 ==> 0.05
0.11 ==> 0.01
0.1
download ada IDE:
write an ada program:
C = 5/9*(F-32);
where C and F are floating point type.
write an ada program to max element in given array.
write an ada program to min element in given array.
write an ada program for addition of two 2-D matrices.
write an ada program for multiplication of two 2-D matrices.
Write an ada program for SWS-LLR-0023, SWS-LLR-0024, and SWS-LLR-0025.