אפליקציה מנבאת עתידות

עקבו אחרי ההוראות במסך זה ובצעו אותן ב-MIT App Inventor. נסו לבצע כל הנחיה בעצמכם, אם אתם לא בטוחים איך - לחצו על החץ משמאל להנחיה על מנת לקבל הוראות מפורטות יותר.

כעת נרצה שמגדת העתידות לא רק תשמיע צליל, אלא תחזה עבורנו את העתיד!

 

נרצה להציג למשתמש את ההוראות בתיבת טקסט אחת, ואת התחזית בתיבת טקסט אחרת. נגדיר לתוכנה להציג בתור התחזית טקסט מתוך רשימה שניתן לה. בכל פעם שהכפתור ילחץ, האפליקציה תציג תחזית אחרת.

מסך העיצוב

1. What are the symptoms and complications that COVID-19 can cause?


Reported illnesses have ranged from mild symptoms to severe illness and death for confirmed coronavirus disease 2019 (COVID-19) cases. The following symptoms may appear 2-14 days after exposure: fever, cough, shortness of breath or sore throat.




2. When can I get tested?


To be tested, you need to comply with several criteria. If you experience the symptoms of the coronavirus, call the national Call Center (2800101) and the professionals will assess and inform you if you meet the criteria for testing. If this is the case, you will be provided with further instructions. If you are not being tested, this means that you do not comply with the criteria.




3. Why is preventive testing not done?


Because it is not effective; it gives information on a specific point in time and the likelihood of a positive test result in the absence of symptoms is very low. Furthermore, because of testing capacity, only those complying with specific criteria will be tested. There is a sufficient amount of tests available for those complying with the criteria.




4. What are the criteria for testing?


The criteria for testing is adapted in accordance with the developments surrounding the virus. At the moment, the criteria for testing include the following:
A patient with acute respiratory illness (cough or shortness of breath or sore throat)
AND one or more of the following (3) criteria:

  1. with a travel history during the past 14 days (prior to onset of symptoms)
  2. OR who has been in close contact with a confirmed case during the past 14 days (prior to onset of symptoms)
  3. OR who has had repetitive close contact (within 1 meter) with anyone with a travel history during the past 14 days (prior to onset of symptoms)




5. Can a person test negative and later test positive for COVID-19?


A negative result means that the virus that causes COVID-19 was not found in the person’s sample. In the early stages of infection, it is possible the virus will not be detected. For COVID-19, a negative test result for a sample collected while a person has symptoms likely means that the COVID-19 virus is not causing their current illness.




6. When do I need to go in quarantine?


You need to go in quarantine if you recently travelled abroad, or if you are instructed to do so by the Department of Public Health. The latter may be because you have been in contact with a confirmed case of COVID-19.




7. How long should I stay home if I have coronavirus-like symptoms?


If you live alone and you have symptoms of coronavirus illness (COVID-19), however mild, stay at home for 7 days from when your symptoms started.
If you live with others and you are the first in the household to have symptoms of coronavirus, then you must stay at home for 7 days, but all other household members who remain well must stay at home and not leave the house for 14 days. The 14-day period starts from the day when the first person in the house became ill.




8. Can I work if I have a bit of a cough?


If you feel sick, stay at home. If you have travelled from abroad during the past 14 days, had close contact with someone who tested positive for COVID-19 during the past 14 days or had contact with a traveler during the past 14 days, stay at home and call the Call Center (2800101). If none of these criteria apply to you, you can go to work. Regardless, take the necessary preventive and hygienic measures.




9. I am a resident and I just arrived from abroad, what do I need to do?


You need to go in a mandatory quarantine at home for 14 days. If you develop coronavirus-related symptoms, contact the Call Center on 2800101.




10. If I am sent home (in quarantine) because I have travelled from abroad, can my employer take vacation days off me?


No, this is not allowed. If you have been sent home in quarantine by the Department of Public Health or when travelled from abroad, the SvB will cover your days of absence as if you are sick.




11. Can I go to the beach, walk outside in nature, go to gatherings and other social events?


Maintain social distancing. As an individual, you can lower your risk of infection by reducing your rate of contact with other people. Avoid public spaces and unnecessary social gatherings, especially events with large numbers of people or crowds. If you are alone, you can go to the beach and walk outside in nature.




12. Will there be consequences for those who do not obey order for quarantine or isolation?


The consequences of not obeying the order for quarantine and/or isolation can be catastrophic for Aruba since those who defy the instructions can be a source of contamination for others. It is the civic duty of each and every citizen to respect and comply with these orders.




13. Who is at higher risk of getting very sick from this illness?


Older adults, people with underlying medical conditions (heart disease, diabetes, lung disease, HIV). Therefore, they are recommended to self-quarantine as a preventive measure.




14. What is the risk for pregnant women?


We do not currently know if pregnant women have a greater chance of getting sick from COVID-19 than the general public nor whether they are more likely to have serious illness as a result. Pregnant women experience changes in their bodies that may increase their risk of some infections. Pregnant women have a higher risk of developing severe illness with viruses from the same family as COVID-19, and other viral respiratory infections, such as influenza. It is always important for pregnant women to protect themselves from illnesses.




15. I have not been in direct contact with someone who tested positive for COVID-19, but I have been in contact with people who have been in contact with a confirmed case of COVID-19, should I get tested or go in quarantine?


Since they are not considered close contacts of someone who tested positive for COVID-19, they are not sent in mandatory quarantine. However, they may decide on their own to self-quarantine as a preventive measure. This cannot do any harm.




16. I live in a house with a person that has been sent into quarantine, can I leave the house?


You can leave the house if you have maintained yourself (yourselves) to the follow rules:

  1. Sleeping in separate bedrooms.
  2. Using separate areas. If you are sharing the same space, clean this area regularly.
  3. Maintain “Social Distancing” with a minimum of 2 meters (6 feet) distance from each other at all times.
  4. Keep your house as open as possibel.





מסך הקוד

נגדיר פקודה שמשנה את הטקסט על התווית ונוסיף אותו לפקודת הלחיצה על הכפתור.


  1. בטור השמאלי של המסך נחפש את Label2 (תווית2), התווית שהוספנו, ונלחץ עליה.
  2. למסך יתווספו אפשרויות של מקטעי קוד. נבחר במקטע set Label2.Text (הגדר את הטקסט של תווית2) ונגרור אותו בדיוק מעל מקטע הקוד של Sound1.Play (השמיעי את צליל1). מקטע הקוד Button1.Click (כשכפתור1 נלחץ) יגדל ויכיל את שני הבלוקים.




ניצור רשימה של אפשרויות שמגדת העתידות תענה.


  1. נלחץ שוב על Lists (רשימות) בטור השמאלי.
  2. נבחר במקטע Make a list (צור רשימה) ונגרור אותו מימין למקטע הקוד של pick random item (בחירת איבר אקראי), כך שיתחברו כמו פאזל.
  3. נגדיר כמה תשובות שונות יתאפשרו:
    1. נלחץ על הכפתור הכחול של גלגלי השיניים שבמקטע Make a list (צור רשימה).
    2. בחלון שנפתח, נגרור לתוך List (רשימה) את הרכיב item (איבר), עד שיהיו items לפי מספר התחזיות שנרצה להציג, למשל 5.
  4. בטור השמאלי של המסך נחפש את המילה Text (טקסט) ונלחץ עליה.
  5. למסך יתווספו אפשרויות של מקטעי קוד הקשורים לטקסט. נבחר במקטע " " ונגרור אותו מימין למקטע הקוד של Make a list (צור רשימה), כך שיתחברו כמו פאזל.
  6. בין המרכאות " " נוכל להקליד את העתידות שלך. נקליד את התחזית הראשונה, למשל "כנראה שכן".
  7. נחזור על שלבים 8, 9, 10 עבור כל תחזית. רעיונות לתשובות: "בוודאות שכן", "ללא ספק", "הסימנים מראים שכן", "שאלי שוב מאוחר יותר", "לא ניתן לדעת", "תתרכזי ותשאלי שוב", "אל תבני על זה", "בספק רב", "המקורות שלי מראים שלא".




נוסיף אלמנט המגריל אקראית מתוך רשימה.


  1. בטור השמאלי של המסך נחפש את המילה Lists (רשימות) ונלחץ עליה.
  2. למסך יתווספו אפשרויות של מקטעי קוד הקשורים לרשימות. נבחר במקטע Pick a random item (בחר איבר אקראי) ונגרור אותו מימין למקטע הקוד של Set Label2.Text (הגדר את הטקסט של תווית2)), כך שיתחברו כמו פאזל.





כל הכבוד, הכנת אפליקציה חוזת עתידות!

כעת נבדוק באמולטור שהאפליקציה עובדת - נלחץ על הכפתור ונוודא שהוא משמיע צליל ומציג את העתידות (בכל פעם אחת אחרת).
 

הכל עובד כמו שרציתם?

אם נגמר הזמן לשיעור, לחצו כאן כדי לעבור להוראות לשמירת האפליקציה לטלפון.

אם יש עוד קצת זמן, לחצו כאן כדי לעבור למדריך הבונוס הבא.