Question

Please Use Python/IDLE language! Also, pleaseee include step by step algorithm. Python 3.4 Hawaiin Words program...

Please Use Python/IDLE language! Also, pleaseee include step by step algorithm.

Python 3.4 Hawaiin Words program help please.

Hawaiian words can be intimidating to attempt to pronounce. Words like humuhumunukunukuapua'a look like someone may have fallen asleep on the keyboard. The language is actually very simple and only contains 12 characters; 5 vowels and 7 consonants. We are going to write a program that allows the user to enter a hawaiian word and give the pronunciation of the word or words as output.

For instance, humuhumunukunukuapua’a phonetic guide would be Hoo-moo-hoo-moo-noo-koonoo-koo-ah-poo-ah'ah

The 12 valid characters in the Hawaiian language are a, e, i, o, u, p, k, h, l, m, n, and w.

Consonants are fairly easy. The only exception with consonants are w’s, which can be pronounced as a w or a v sound.

Consonants

p, k, h, l, m, n Pronounced like the english versions.

w - start of word Either pronounced as a w or a v sound. We shall pronounce it as a w sound.

w - after the letter ‘a’ Either pronounced as a w or a v sound. We shall pronounce it as a w sound.

w - after ‘i’ or ‘e’ Pronounced as a v sound

w - after ‘u’ or o Pronounced as a w sound.

Vowels

a sounds like ah. eg. Austin - ah-stin

e sounds like eh. eg. egg - eh-gg

i sounds like ee eg. bee

o sounds like oh eg. obey - oh bay

u sounds like oo eg. mood - m oo d

Vowel Groups

ai sounds like eye. eg. Ice

ae sounds like eye. Same as ai

ao sounds like ow. eg. How

au sounds like ow. eg. House.

ei sounds like ay. eg. Hay

eu sounds like eh-oo

iu sounds like ew

oi sounds like oy

ou sounds like ow.

ui sounds like ooey. Like gooey

You’ll notice that all groupings of vowels aren’t represented. For instance there is no combination for oa in a word. In cases like this each vowel is pronounced as individual vowel sounds. From the vowel sounds o is pronounced as oh and a as ah. So oa would sound like oh-ah. The hawaiian word Hoaloha means friend and would be pronounced as Hoh-ah-loh-hah

There are words with more than 2 vowels in a row. These are approached in the same way. If aia is in a word, the ai would be said like eye. Then you’d pronounced the a as ah. aia thus sounds like eye-ah. Kaiapuni is the Hawaiian word for environment and is pronounced Keyeah-poo-nee.

If there are more than 2 vowels in a row and the first 2 do not have a single sound, then you would say the first vowel normally, and then check to see if vowel 2 and 3 have a combined sound. The ua in Huaai does not have a sound. So you’d just pronounced the u as oo, and then evaluate the aa. Since there is no sound for aa, you’d just pronounced the first a as ah, and then evaluate ai. The ai is said like eye. So the word would be said as Hoo-ah-eye.

For simplicity we will ignore accents in words. ā or â is simply an a

Requirements:

● The program should validate that the word given by the user only has valid Hawaiian characters. Spaces and the apostrophe (‘) are valid as well.

● If a word is not valid, warn the user about offending characters and prompt for a hawaiian word again.

● Spaces are breaks for words and should be kept intact

● The apostrophe is a hard stop, and should be kept in the word. A word with a’i is pronounced ah’ee. Without the apostrophe it would be eye.

● Ask the user if they want to do another word. Valid responses are Y, YES, N or NO. If they want to play more, then they can enter another hawaiian word. If no, then the program ends.

Development notes

● You won’t be able to just use the .replace() method. You’ll need to evaluate the the characters entered one at a time according to the rules.

● Using .upper() or .lower() will change all the characters to the given case. Making comparisons easier.

● Use .capitalize() will capitalize the first character in each word. Makes for a nice output.

Example

Enter a hawaiian word to pronounce ==> invalid

V is not a valid hawaiian character

Enter a hawaiian word to pronounce ==> aloha

ALOHA is pronounced Ah-loh-hah

Do you want to enter another word? Y/YES/N/NO ==> humuhumunukunukuapua'a

Enter Y, YES, N or NO

Do you want to enter another word? Y/YES/N/NO ==> y

Enter a hawaiian word to pronounce ==> Kakahiaka

KAKAHIAKA is pronounced Kah-kah-hee-ah-kah

Do you want to enter another word? Y/YES/N/NO ==> y

Enter a hawaiian word to pronounce ==> Mahalo

MAHALO is pronounced Mah-hah-loh

Do you want to enter another word? Y/YES/N/NO ==> y

Enter a hawaiian word to pronounce ==> E komo mai

E KOMO MAI is pronounced Eh koh-moh meye

Do you want to enter another word? Y/YES/N/NO ==> y

Enter a hawaiian word to pronounce ==> humuhumunukunukuapua'a

HUMUHUMUNUKUNUKUAPUA'A is pronounced Hoo-moo-hoo-moo-noo-koo-noo-koo-ah-poo-ah'ah

Do you want to enter another word? Y/YES/N/NO ==> n

>>>

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Please Use Python/IDLE language! Also, pleaseee include step by step algorithm. Python 3.4 Hawaiin Words program...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • In Java please Only use methods in the purpose. Thank you The purpose of this assignment is to help you learn Java iden...

    In Java please Only use methods in the purpose. Thank you The purpose of this assignment is to help you learn Java identifiers, assignments, input/output nested if and if/else statements, switch statements and non-nested loops. Purpose Question 2-String variables/Selection & loops. (8.5 points) Write a complete Java program which prompts the user for a sentence on one line where each word is separated by one space, reads the line into one String variable using nextline), converts the string into Ubbi...

  • Write a structured (procedural) Python program that solves the following spec: Soundex System Coding: Soundex is...

    Write a structured (procedural) Python program that solves the following spec: Soundex System Coding: Soundex is a system that encodes a word into a letter followed by three numbers that roughly describe how the word sounds. Therefore, similar sounding words have the same four-character code. Use the following set of (slightly modified #4) rules to create a translator from English words to Soundex Code: Retain the first letter of the word. For letters 2 …n, delete any/all occurrences of the...

  • C LANGUAGE. PLEASE INCLUDE COMMENTS :) >>>>TheCafe V2.c<<<< #include ...

    C LANGUAGE. PLEASE INCLUDE COMMENTS :) >>>>TheCafe V2.c<<<< #include <stdio.h> int main() { int fries; // A flag denoting whether they want fries or not. char bacon; // A character for storing their bacon preference. double cost = 0.0; // The total cost of their meal, initialized to start at 0.0 int choice; // A variable new to version 2, choice is an int that will store the // user's menu choice. It will also serve as our loop control...

  • Edit a C program based on the surface code(which is after the question's instruction.) that will...

    Edit a C program based on the surface code(which is after the question's instruction.) that will implement a customer waiting list that might be used by a restaurant. Use the base code to finish the project. When people want to be seated in the restaurant, they give their name and group size to the host/hostess and then wait until those in front of them have been seated. The program must use a linked list to implement the queue-like data structure....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT