![]() |
.. (לתיקייה המכילה) | |
What happens if the user presses BACKSPACE and there are no characters to be deleted? | |
If there are no characters to be deleted, the program must ignore the BACKSPACE character and print nothing. |
When was the assignment last updated? | |
On 28/06/2015 at 22:00. Highlights: You don't need to submit a printed version of your code The "unknown command" string should end with a dot '.' The initial value of set command is 0, which means there will be no matrices changes until a different value is set. Set command receives a number in decimal (10) basis. You can assume that the length of the message identifier is at most 20 characters You can assume there will be a single space between the parameters of the command For valid commands you may assume the number of parameters will be correct |
Should there be an empty line after the message that ends the program (e.g. after "Goodbye!")? | |
No. |
How many spaces may appear between the command and the arguments? | |
You may assume there will be exactly one space between the command and the arguments. |
Can we assume that the execution of each command is finished before the next command is given? | |
Yes, you can assume the user will start entering the next command only after the previous one is finished. |
What should happen if the user enters more than 50 characters? | |
You should store at most 50 characters at any time. If there are 50 characters in the buffer new characters will be ignored (and will not be printed). When the user press backspace the last character is erased from the buffer and a new character can be stored. |
Can we get a space at the beginning of the line? | |
No, you can assume there will be no space in the beginning of each line. You may also assume there will be no empty lines in the input. |
When the matrices are changed do we need to print a new line before printing the string? | |
Yes, you should print a new line, print the string ("Matrices were changed") and print another empty line before printing the beginning of the prompt line (>>). |
What can we assume about the boundaries of the number given in set command? | |
You may assume the given number will be non-negative and small enough so that multiplying it by rate will be in the range of a single word. |
Should the set command reset the time counter? | |
Yes, when the set command is executed you have to reset the time counter. |