.. (לתיקייה המכילה) | ||
שלום רב, בהנחיות התרגיל נאמר כי "אנחנו מעוניינים להתייחס רק להצבעה האחרונה התקינה של כל ת.ז.". | |
In this example, assuming all other fields are correct, Sason is going to the correct list. Shimi is not. The idea is that the ID is unique for each person, that is, the same person is correcting his/her other fields. Therefore the person of ID 12345678 name is Sason. |
בהנחיות התרגיל פעם אחת רשום כי אנחנו אמורים לקבל את event_manger.py ובהמשך רשום כי עלינו לשנות דברים בקובץ eventManager.py (שאותו באמת קיבלנו מהשרת), האם זו פשוט טעות הקלדה ובסך הכל מדובר באותם קבצים? או שצריכים להיות לנו שני קבצים שונים event_manager.py ו-eventManager.py | |
eventManager.py - file you are requested to write your code. event_manager.py - file automatically generated by swig. The names are indeed similar, but they are 2 different files, please note the difference. |
In CorrectAgeAverage() and printYoungestStudents() : | |
The corrected "file". The file input as said in the comment: "The path to the unfiltered subscription file". You need to filter it, like in the first function. And process after corrected (not neccessarily create a new file). |
בפונקציה CorrectAgeAvg אין קובץ פלט, האם ניתן ליצור קובץ טקסט על מנת להשתמש בפונקציית התיקון של הקלט, למרות שאין לנו אופציה למחוק אותו כי אסור להשתמש בספרייה os? | |
In this function, you should not create an output file. |
האם ייתכן ולפני מספר תעודת הזהות יהיה רווח או רווחים? | |
Yes, not numbers or letters, but possibly spaces. |
| |
1. Yes, you may add any helper functions you want. 2. You need to follow the convention for every code you write. |
gcc -std=c99 -fPIC -c event_manager_wrap.c -I/usr/local/include/python3.6m | |
שימו לב שזה לא מקף L קטנה, אלא מקף i גדולה. |
1. מה הפלט הצפוי עבור ארבעה פסיקים רצופים ללא כל תוכן בשדות (,,,,) האם זהו קלט אפשרי? | |
You can assume that there are no empty fields. Moreover, there are always 4 "," and something written between them, according to what is defined in the PDF. |
שלום, | |
The best practice would be to define a variable that contains the value. Since, as said before, there is not define in python. However, in this HW, it is OK to use them in the code as magic numbers. (but it still recommended not to) |
Are we allowed to used the operator "itemgetter"? | |
You can use any builtin functionality from python. That is, you can not use imports (other than event_manager). |
If we use the library correctly, we shouldn't get any failures, but there is one we can get - EM_OUT_OF_MEMORY. | |
Yes |
can we assume that there will be no spaces between the numbers in the id, | |
You can assume that there are no spaces between the digits, although can be spaces before/after the number. |
?האם אפשר ליצור קובץ חדש שלא קיבלתי את השם שלו כפרמטר מהפונקציה | |
לא |