One of the requirements for the Bank project is "reasonable error handling". This requirement is seemingly vague as many students haven't implemented reasonable error handling the first time they try to present their project. In Swedish, the full text for the requirement is:
"Rimlig felhantering ska finnas. Det är alltså önskvärt att programmet inte kraschar då användaren matar in felaktig input, utan istället säger till användaren att input är ogiltig. Du kan dock anta att historikfilen alltid är i rätt format."
In order to hopefully put more students on the correct path before trying to present their projects, this requirement could be clarified. For example, it could be written that input requiring Integers or Floats should not crash when presented with Strings. Also, when depositing or withdrawing money, the amount should not be able to be negative. Further, there have been cases were the code does handle negative amounts for the "live" bank but still adds it to the history, making the program crash or not load in correctly when restarted.
One of the requirements for the Bank project is "reasonable error handling". This requirement is seemingly vague as many students haven't implemented reasonable error handling the first time they try to present their project. In Swedish, the full text for the requirement is:
"Rimlig felhantering ska finnas. Det är alltså önskvärt att programmet inte kraschar då användaren matar in felaktig input, utan istället säger till användaren att input är ogiltig. Du kan dock anta att historikfilen alltid är i rätt format."
In order to hopefully put more students on the correct path before trying to present their projects, this requirement could be clarified. For example, it could be written that input requiring Integers or Floats should not crash when presented with Strings. Also, when depositing or withdrawing money, the amount should not be able to be negative. Further, there have been cases were the code does handle negative amounts for the "live" bank but still adds it to the history, making the program crash or not load in correctly when restarted.