-- Collection of code snippets by Arne Vajhøj -- (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) with Ada.Text_IO,Salary,Net_Salary; use Ada.Text_IO,Salary,Net_Salary; procedure Test_Salary is S : Salary_Type; NS : Net_Salary_Type; begin Salary_Create(25000, S); Put(S); New_Line; Net_Salary_Create(25000, 10000, NS); Put(NS); New_Line; end Test_Salary;