View the step-by-step solution to:

Question

code in java

55555.jpg

src="/qa/attachment/11007430/" alt="666666666.jpg" />

55555.jpg

Most Malay words has the following syllable structure: 6 and above length of word has 3 syllables
4 and 5 length of word has 2 syllables, and 3 and less length of word has 1 syllable. However there ar
two general exceptions: for 6 length of word that contain 'ng' or 'ny" within the word, it has 2 syllables
For 3 length of word that starts with vowel alphabet, it has 2 syllables. For example: "aku" has 2
syllables, "kau" has 1 syllable, "berlari" has 3 syllables, "belang" has 2 syllables, "si" has 1 syllable and
"seorang" has 3 syllables.
Pantun rhythm has the following structure. The last two alphabets of the last word in alternating
verses should be the same, i.e. 1st - 3rd verses, and 2nd - 4th verses. For example, consider the followin
partun and observe the bold (and underlined) alphabets.
Dua tiga kucing berlari
Mana nak sama si kucing belang
Dua tiga boleh kau cari
Mana nak sama aku seorang
As you can see, the ist and 3rd verses have a same rhythm (ended with "ri"), while the 2nd and 4th
verses also have a same rhythm (ended with "ng"). This is an example of pantun with good rhythm
(both pairs rhyme). If we analyze the syllable count of the above pantun, then:
First verse : 8 syllables (1+2+2+3)
Second verse : 10 syllables (2+1+2+1+2+2)
Third verse : 8 syllables (1-2+2+1+2)
Forth verse : 10 syllables (2+1+2+2+3)
This pantun also has a same number of syllables for each pair of alternating verse, which is also a
sign of a good pantun.
As someone who loves pantun, there are so many pantun that you need to assessed. Thus, it is
handy to have an automatic pantun early-evaluator (we call it early-evaluator as the result of this
evaluator only serves to determine the priority of pantun which should be assessed first).We decided
that the evaluator should score the pantun in the following way:
. 10 points for each verse which fulfill the syllable count requ

666666666.jpg

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Let our 24/7 Java Programming tutors help you get unstuck! Ask your first question.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors