.. (לתיקייה המכילה) | ||
Q: Can we do HW2 even though we did not learn lecture 6 yet? | |
A: Yes. There is no need to use materials from lecture 6. You may use these materials (such as passing arrays to functions), but don't have to. |
Q: Which operators are allowed to use in the functions in question 1? | |
A: Arithmetic (+,-,*,/,...), comparison (==,>,<,...) and logic (&&, ||, !) operators are allowed. |
Q: What should happen is the user enters 0 as a block size? | |
A: 0 is an invalid block size, so the message for invalid block size should be printed and the user will re-enter the value. notice that in this case the program should not be terminated! |
Q: In question 2, how should I round a negative average of a block? | |
A: You should round it to the integer that is closer to zero, but this case will not be tested. |