Write exercises
Submit APL code for the following exercises. Your submissions are graded using TMC.
Make sure to log in to be able to submit your work!
Remember, you can test out ideas and develop you solution at TryAPL before submitting it here.
You can submit as many solutions as you like. If you submit a correct solution at least once, you will receive points on the TMC server and be able to see the model solution.
If the write problem is red, it is unsolved. If it it green, you have solved it and received points for it on the server.
Write problem 4
Write a function to delay all flights on the first of december by 5 minutes. You can assume that all the times listed end with '30' or '00'.
flights
┌─────────┬─────────┬───────────┬──────────┬─────┐
│Jari N. │Helsinki │Tallinn │2024-12-01│08:00│
├─────────┼─────────┼───────────┼──────────┼─────┤
│Erik O. │Stockholm│Gothenburg │2024-12-01│14:00│
├─────────┼─────────┼───────────┼──────────┼─────┤
│Michel A.│London │Los Angeles│2024-12-03│11:30│
└─────────┴─────────┴───────────┴──────────┴─────┘
delay flights
┌─────────┬─────────┬───────────┬──────────┬─────┐
│Jari N. │Helsinki │Tallinn │2024-12-01│08:05│
├─────────┼─────────┼───────────┼──────────┼─────┤
│Erik O. │Stockholm│Gothenburg │2024-12-01│14:05│
├─────────┼─────────┼───────────┼──────────┼─────┤
│Michel A.│London │Los Angeles│2024-12-03│11:30│
└─────────┴─────────┴───────────┴──────────┴─────┘
Hint: You can use
delay←