|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 5120 (0x1400) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Tank, seg_058dd0
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Counter, Text_Io; procedure Tank is Qty : Integer; Choix : Character := 'o'; package Tank is new Counter (Maximum => 45); procedure Refill (The_Tank : in out Tank.Object; With_Qty : Positive) renames Tank.Up; procedure Siphon (The_Tank : in out Tank.Object; With_Qty : Positive) renames Tank.Down; Ma_205, Ta_Golf : Tank.Object; package Int_Io is new Text_Io.Integer_Io (Integer); begin Text_Io.Put_Line ("**** Les reservoirs de voitures ****"); Tank.Set (The_Object => Ma_205, To_Mode => Tank.Checked); Tank.Set (The_Object => Ta_Golf, To_Mode => Tank.Checked); Tank.Set (The_Object => Ma_205, To_Value => 30); Tank.Set (The_Object => Ta_Golf, To_Value => 40); Text_Io.Put_Line ("**** Initialisation effectuee ****"); Text_Io.Put (" Reservoir de ma 205 est :"); Int_Io.Put (Item => Tank.Get (Ma_205)); Text_Io.Put_Line (""); Text_Io.Put (" Reservoir de la Golf est : "); Int_Io.Put (Item => Tank.Get (Ta_Golf)); Text_Io.Put_Line (""); while Choix = 'o' loop begin Text_Io.Put (" ---->Transvaser de combien (de Golf vers 205) ? "); Int_Io.Get (Qty); Text_Io.Put_Line (""); Siphon (Ta_Golf, Qty); Refill (Ma_205, Qty); Text_Io.Put (" Reservoir de ma 205 est :"); Int_Io.Put (Item => Tank.Get (Ma_205)); Text_Io.Put_Line (""); Text_Io.Put (" Reservoir de la Golf est : "); Int_Io.Put (Item => Tank.Get (Ta_Golf)); Text_Io.Put_Line (""); Text_Io.Put (" ----> Voulez-vous continuer (o/n)?"); Text_Io.Get (Choix); exception when Constraint_Error => Text_Io.Put_Line ("**** Vous tentez de mettre une valeur negative!!! ****"); end; end loop; Text_Io.Put_Line ("**** Fin du programme ****"); end Tank;
nblk1=4 nid=4 hdr6=6 [0x00] rec0=18 rec1=00 rec2=01 rec3=060 [0x01] rec0=19 rec1=00 rec2=02 rec3=062 [0x02] rec0=03 rec1=00 rec2=03 rec3=000 [0x03] rec0=03 rec1=00 rec2=03 rec3=000 tail 0x21766e18a88e27ebe33c4 0x42a00088462060003 Free Block Chain: 0x4: 0000 00 00 00 04 80 01 6c 01 02 03 04 3b 06 00 09 65 ┆ l ; e┆