Open azmanyasin opened 2 years ago
A common exercise is counting how many times a word occur in a set. For every unique word in the set, you should print the number of occurrences:
Input: 6 // number of words hello world hello germany hello berlin
Output: hello, 3 world, 1 germany, 1 berlin, 1
DIFFICULT: implementing this exercise in just one method is difficult. Try to split the problem in smaller ones and reuse existing methods instead.
HINT: define and implement first a count method and use it in the wordCount exercise above
https://github.com/STIA-1113-GROUP-C-Ainul-Amirah/QUIZ-3-.git
https://github.com/STIA-1113-GROUP-C-HO-WAI-KIAT/LABTEST-3.git
https://github.com/TANGWEICHIANG/LAB-TEST-3.git
https://github.com/STIA1113-GROUP-C-TAN-GUAN-XUN/LAB-TEST-3.git
https://github.com/STIA1113-GROUP-C-HAIKAL/LabTest-3.git
https://github.com/STIA-1113-GROUP-C-NURFARAH/LAB-TEST-3.git
https://github.com/STIA-1113-GROUP-C-Toh-Vin-Ping/LabTest3-Q1.git
https://github.com/ChooKuaiFern277673/LAB-TEST-3.git
https://github.com/STIA1113-GROUP-C-ANIS-SHAFIQAH/LAB-TEST-3.git
https://github.com/STIA-1113-GROUP-C-ZAFIRAH/LAB-TEST-3.git
https://github.com/STIA-1113-GROUP-C-Wan-Aysha-Sofea/LABTEST-3.git
https://github.com/STIA-1113-GROUP-C-AIMEL/LabTest3.git
https://github.com/STIA1113-GROUP-C-KOR-JUN-XIANG/LabTest3.git
https://github.com/STIA1113-GROUP-C-WAN-RUI-YIN/LAB-TEST-3.git
https://github.com/STIA-1113-GROUP-C-LIMHUIQI/LAB-TEST-3.git
https://github.com/Seraafiqah/LAB-TEST-3.git
https://github.com/STIA-1113-GROUP-C-NURAISYAH/LAB-TEST-3.git
https://github.com/STIA-1113-GROUP-C-CHOONG-QIAN-YU/LAB-TEST-3.git
https://github.com/AQILNAJJAH/QUIZLABTEST.git
https://github.com/STIA-1113-GROUP-C-Nik-Hanis/LabTest3.git
https://github.com/STIA-1113-GROUP-C-ANDY/Lab-Test-3.git
https://github.com/STIA-1113-GROUP-C-ZIN/Lab-Test-3.git
https://github.com/STIA-1113-GROUP-C-LAILA/LABTEST-3.git
https://github.com/STIA1113-GROUP-C/TEST-3.git
https://github.com/RayyanKamal28462/lab-test-3.git
https://github.com/STIA-1113-GROUP-C-FARA-AYEESHA/Lab-Test-3.git
https://github.com/STIA-1113-GRP-C/Lab-Test.git
https://github.com/STIA1113-GROUP-C-ANGKAIZI/Quiz-3/blob/main/Labtest
https://github.com/STIA-1113-GROUP-C-Azyyati-Adlin/LABTEST3.git
https://github.com/STIA1113-GROUP-C-IntanSyamimi/LabTest-3.git
https://github.com/STIA-1113-GROUP-C-AFIQ-IMRAN/LabTest3.git
https://github.com/STIA-1113-GROUP-C-Nor-Aisyah/LAB-TEST-3.git
https://github.com/Yasriroslan/LAB--3.git
https://github.com/STIA1113-GROUP-C-AlyaIzazi/QUIZ.git
INSTRUCTION
A common exercise is counting how many times a word occur in a set. For every unique word in the set, you should print the number of occurrences:
Input: 6 // number of words hello world hello germany hello berlin
Output: hello, 3 world, 1 germany, 1 berlin, 1
DIFFICULT: implementing this exercise in just one method is difficult. Try to split the problem in smaller ones and reuse existing methods instead.
HINT: define and implement first a count method and use it in the wordCount exercise above
SUBMISSION