Hawaiian Words CSC220
Must use Java Programming.
Write a program that gives the pronunciation of a Hawaiian word. For instance, humuhumunukunukuapua’a phonetic guide would be Hoo-moo-hoo-moo-noo-koo-noo-koo-ah-poo-ah'ah
The program should start by prompting for and reading in a Hawaiian word (or phrase) from the user.
Check if the word is a valid by checking that it only has valid Hawaiian characters. If the word is not valid, warn the user about the offending character and prompt for a Hawaiian word again.
Spaces are breaks for words and should be kept intact. The apostrophe is a hard stop andshould be kept in the word.
Print the pronunciation of the word (or phrase). Print a dash after every sound as you see in the examples, so you get the syllables separated.
Ask the user if they want to do another word. Valid responses are y, Y, n or N. If they want to play more, they can enter another word. If not, then the program ends.
You won’t be able to just use the .replace() method. Youwill need to evaluate thecharacters entered one at a time accordingto the rules.
Using .upper() or .lower() will change all the characters to the given case, making comparisons easier.
Example Run:
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/Y/n/N/
humuhumunukunukuapua'a
Enter y, Y, nor N Do you want to enter another word? y/Y/n/N
y
Enter a Hawaiian word to pronounce
Kakahiaka
kakahiakais pronounced kah-kah-hee-ah-kah
Do you want to enter another word? y/Y/n/N
y
Enter a Hawaiian word to pronounce
Mahalo
Mahalois pronounced Mah-hah-loh
Do you want to enter another word? y/Y/n/N
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? n/Y/n/N
y
Enter a Hawaiian word to pronounce ==>
keiki
keiki is pronounced kay-kee Do you want to enter another word? y/Y/n/N
n
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 1 images
- LOTTERY Bill buys 10 lottery tickets which he plays randomly. Let us write a C# program for Bill that suggests random numbers for him. After the winning numbers are drawn, the program informs Bill of the results of each lottery ticket. There are 5 winning numbers in one lottery ticket. Each number is from 1 to 90.arrow_forwardJAVA PROGRAMMING LAB Write a Java program to takes 2 numbers from the user and print true if one or the other is teen, but not both. "teen" number is that number which lies in the range 13..19 inclusive.arrow_forwardJava Programarrow_forward
- Java - Name Formatarrow_forwardJAVA PROGRAM Your task is to make a point calculator which takes a point in the 1st quadrant and then finds its position in user entered quadrant.arrow_forwardlemy Basics structions Nickname Problem program.py > Type your answer to "Nickname"r here. Write a program that asks the user for their nickname, then prints out a welcome message like this: What is your nickname? pikachu Welcome, I will call you 'pikachu'. Watch out for the punctuation and quotes! A Submissions Output You don't have any submissions or saved code.arrow_forward
- Number to Words: Write a Java program to convert a given number to its equivalent words representation. For example, 123 -> "one hundred twenty-three".arrow_forwardIn Coral Language 3.22 LAB: Loops: Countdown until matching digits Write a program that takes in an integer in the range 20-98 as input. The output is a countdown starting from the integer, and stopping when both output digits are identical. Ex: If the input is: 93 the output is: 93 92 91 90 89 88 Ex: If the input is: 77 the output is: 77 Ex: If the input is: 9 or any number not between 20 and 98 (inclusive), the output is: Input must be 20-98 For coding simplicity, follow each output number by a space, even the last one. Use a while loop. Compare the digits; do not write a large if-else for all possible same-digit numbers (11, 22, 33, …, 88), as that approach would be cumbersome for large ranges.arrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY