Yurttas/PL/IL/Ada-95/Sort/BSort/bsorti a 00.adb
Jump to navigation
Jump to search
1--
2-- Copyright (C) 1998
3-- All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4--
5-- Permission to use, copy, modify, and distribute this
6-- software and its documentation for EDUCATIONAL purposes
7-- and without fee is hereby granted provided that this
8-- copyright notice appears in all copies.
9--
10--
11
12-- date : January 1, 1998.
13-- author : Salih Yurttas.
14
15-- purpose : sorting of a list of integers in ascending order
16-- using Bubble-Sort.
17
18-- bsorti_a_00.adb
19
20
21with ListIF_P; use ListIF_P;
22with I_ListIF_P; use I_ListIF_P;
23with O_ListIF_P; use O_ListIF_P;
24
25with BSortI_A_00_P; use BSortI_A_00_P;
26
27procedure BSOrtI_A_00 is
28
29 k : Integer;
30 L : ListI(1..16);
31 PageHeader : constant String := "The sorted list of integers are :";
32
33begin
34
35 GetIL(k,L);
36
37 Bubble_SortI(k,L);
38
39 PutIL(k,L,PageHeader);
40
41end BSOrtI_A_00;