!”#$%&$”(
!”#$%&'(#)%”*#%*+%,-‘#.$*/().”(.*0
)*+,-./0$1/2 3*4/$*5$”67/08–#$9:;<=;<<$9#:> $ ?/8@ $ $+ABB2C $ !
Copyright By PowCoder代写 加微信 powcoder
%-C0+/ $ R0-H0/++ $ )*+,C++*-5 $ &65JU-K $ VGW$XV0/YC/578S$G+N/J$WC/+7*-5+Z
$ %-C0+/$ #$ #$ G++*H54/57$T-JC8/$A$ #$ ?626**65$_65HC6H/
% $R0/.*-C+ Instructions Poker Dice Run Length Encoding Hawaiian Language 1/K7 $& !”#”$$”%&'”%()”(*
$ !””#$%&#'()*+’,%-.
hawaiian_phonetic(s)
If at the start of the word, after the vowels a, o or u, or after a consonant, it is pronounced as a w as in English. (Aside Sometimes, at the start of a word or after an a, it actually makes a v sound. We simplify this for convenience.)
If after the vowels e or i, it is pronounced as a v.
Vowel Sounds Like
a ah e eh i ee o oh u oo
Vowel Sounds Like
ai eye ao ow
eu eh-oh iu ew
oi oy ou ow ui ooey
hawaiian_phonetic(“”) => “”
hawaiian_phonetic(“zgleam”) => None
hawaiian_phonetic(“waiu”) => “weye-oo”
hawaiian_phonetic(“huaai”) => “hoo-ah-eye”
hawaiian_phonetic(“aloha”) => “ah-loh-hah”
hawaiian_phonetic(“Ohana”) => “oh-hah-nah”
hawaiian_phonetic(“‘ewalu”) => “eh-vah-loo”
hawaiian_phonetic(“Kakahiaka”) => “kah-kah-hee-ah-kah”
hawaiian_phonetic(“humuhumunukunukuapua’a”) =>
“hoo-moo-hoo-moo-noo-koo-noo-koo-ah-poo-ah-ah”
No submissions found
1 2 3 4 5 6 7
import check
def hawaiian_phonetic(s):
##YOUR CODE GOES HERE
check.expect(“MarkUs Basic Test”,hawaiian_phonetic(“haiu”),”heye-oo”)
Code Output
[C5$%-J/ &6./$%-J/
)*+,C++*-5
Topic: Week 3 / A3: Hawaiian Language
Show all posts
[/+/7$%-J/
&I-2$?*+7-0S
&CU4*7$3-$T60N!+
T60N!+$&CU4*++*-5+
2*0.’3*+45++*”6 /00’%’1″+(
by recent activity
‘ Misunderstanding
The question says that for the consonant w, If after a consonant, it is pronounced as a w as in English, however, the question also says that consonants also cannot occur beside each other in a Hawaiian word. S…
‘ Questions related to the stop symbol
I basically have two small questions related to the stop symbol ‘ in this question. The question says “Hawaiian words never end with a consonant.” So, if 1. a word that is ” ‘ ” (only have a stop symbol) 2. the wor…
‘ Syllables
So I got the translations to work, but I’m having a little trouble with understanding how I can get the code to know what a syllable is so dash marks can be added. Any tips?
% $R0/.*-C+ 1/K7 $&
3/04+$-O$&/0.*,/$Q$?-5-0$%-J/$; $R0*.6,S$R-8*,S
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com