|
|
Line 2,282: |
Line 2,282: |
|
wend |
|
wend |
|
print maxCount;" ";theDate$</lang> |
|
print maxCount;" ";theDate$</lang> |
|
|
|
⚫ |
|
|
⚫ |
<lang seed7>$ include "seed7_05.s7i"; |
|
|
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
var file: inFile is STD_NULL; |
|
⚫ |
|
|
⚫ |
var integer: currLicenses is 0; |
|
⚫ |
var integer: maxLicenses is 0; |
|
⚫ |
var array string: maxLicenseTimes is 0 times ""; |
|
⚫ |
var string: eventTime is ""; |
|
⚫ |
|
|
⚫ |
inFile := open("mlijobs.txt", "r"); |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
if line[9 len 3] = "OUT" then |
|
⚫ |
|
|
⚫ |
if currLicenses >= maxLicenses then |
|
⚫ |
if currLicenses > maxLicenses then |
|
⚫ |
maxLicenses := currLicenses; |
|
⚫ |
maxLicenseTimes := 0 times ""; |
|
⚫ |
|
|
⚫ |
maxLicenseTimes &:= line[15 len 19]; |
|
⚫ |
|
|
⚫ |
elsif currLicenses > 0 then |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
writeln("Maximum simultaneous license use is " <& maxLicenses <& " at the following times:"); |
|
⚫ |
for eventTime range maxLicenseTimes do |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
|
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
Maximum simultaneous license use is 99 at the following times: |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
|
|
|
|
|
=={{header|Scala}}== |
|
=={{header|Scala}}== |
Line 2,384: |
Line 2,342: |
|
{{in progress|lang=LANG|day=DD|month=MM|year=YYYY}} |
|
{{in progress|lang=LANG|day=DD|month=MM|year=YYYY}} |
|
// |
|
// |
|
|
|
|
⚫ |
|
|
⚫ |
<lang seed7>$ include "seed7_05.s7i"; |
|
|
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
var file: inFile is STD_NULL; |
|
⚫ |
|
|
⚫ |
var integer: currLicenses is 0; |
|
⚫ |
var integer: maxLicenses is 0; |
|
⚫ |
var array string: maxLicenseTimes is 0 times ""; |
|
⚫ |
var string: eventTime is ""; |
|
⚫ |
|
|
⚫ |
inFile := open("mlijobs.txt", "r"); |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
if line[9 len 3] = "OUT" then |
|
⚫ |
|
|
⚫ |
if currLicenses >= maxLicenses then |
|
⚫ |
if currLicenses > maxLicenses then |
|
⚫ |
maxLicenses := currLicenses; |
|
⚫ |
maxLicenseTimes := 0 times ""; |
|
⚫ |
|
|
⚫ |
maxLicenseTimes &:= line[15 len 19]; |
|
⚫ |
|
|
⚫ |
elsif currLicenses > 0 then |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
writeln("Maximum simultaneous license use is " <& maxLicenses <& " at the following times:"); |
|
⚫ |
for eventTime range maxLicenseTimes do |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
|
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
Maximum simultaneous license use is 99 at the following times: |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
|
|
|
|
=={{header|Sidef}}== |
|
=={{header|Sidef}}== |