package Ranges is
   subtype Percent is Integer range 0 .. 100;
   type Reading is range -1000 .. 1000;

   function Next (Value : Percent) return Percent
     with Pre => Value < Percent'Last,
          Post => Next'Result = Value + 1;
end Ranges;
