-- 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,Ada.Integer_Text_IO;

use Ada.Text_IO,Ada.Integer_Text_IO;

package body Salary is
    procedure Salary_Create(Amount : in Integer; Instance : out Salary_Type) is
    
    begin
        Instance.M_Amount := Amount;
    end Salary_Create;
    
    function Amount(S : in Salary_Type) return Integer is
    
    begin
        return S.M_Amount;
    end Amount;
    
    procedure Put(S : in Salary_Type) is
    
    begin
        Put(S.M_Amount,Width=>1);
    end Put;
end Salary;
