.. (לתיקייה המכילה) | ||
Question 1: Could we assume each weight is a positive integer? | |
No. The weight could be any non-negative real number. |
Question 1: Could we assume the input is always valid? | |
No. In case the input is not as expected, the program should immediately stop without printing any additional messages |
Question 1+2 : What should be a return value of my program in case of an error? | |
Please recall, that return value 0 - is a success value, any other value designates an error. You can return ANY ERROR value in case of an error. Automatic checker will not fail tests returning 0 in case of an error. |
Question 2: when we print "enter char to count" what happens if the user enters more than 1 char? | |
You can assume there will be only 1 char. |