Task 1 CSPR
# Declare Arrays (Lists) - answersDECLARE ARRAY Day["Mon1", "Tue1",........,"Fri4"]
as STRING
DECLARE ARRAY BusA[] as INTEGER
Populate Arrays (Lists)
# Loop through Bus A and enter four weeks' worth of data - answersFOR x*<-* 1 TO 20
PRINT "Please enter how many minutes early or late the bus was on", Day[x]
validEntry *<-* FALSE
WHILE validEntry *<-* FALSE DO
INPUT busTime
IF busTime < -60 OR busTime > 60 THEN
PRINT "Time not valid! Please re-enter"
ELSE
# Display positive message - answersPRINT "Whoop de doo, u r amazing"
# Update validEntry - answersvalidEntry *<-* TRUE
# Update BusA[] - answersBusA[x] *<-* busTime
END IF
END WHILE
NEXT x
# Declare Arrays (Lists) - answersDECLARE ARRAY Day["Mon1", "Tue1",........,"Fri4"]
as STRING
DECLARE ARRAY BusA[] as INTEGER
Populate Arrays (Lists)
# Loop through Bus A and enter four weeks' worth of data - answersFOR x*<-* 1 TO 20
PRINT "Please enter how many minutes early or late the bus was on", Day[x]
validEntry *<-* FALSE
WHILE validEntry *<-* FALSE DO
INPUT busTime
IF busTime < -60 OR busTime > 60 THEN
PRINT "Time not valid! Please re-enter"
ELSE
# Display positive message - answersPRINT "Whoop de doo, u r amazing"
# Update validEntry - answersvalidEntry *<-* TRUE
# Update BusA[] - answersBusA[x] *<-* busTime
END IF
END WHILE
NEXT x