Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6 CE 231 23 - Mme Online/Labs/ x 03/:03.pdf PART B: PROGRAMMING WITH STRINGS Develop a Python programs which will covert Eagluh words into their

image text in transcribed
6 CE 231 23 - Mme Online/Labs/ x 03/:03.pdf PART B: PROGRAMMING WITH STRINGS Develop a Python programs which will covert Eagluh words into their Pig Latin form, as described below The program will repeatedly prompt the her to enter a word First convert the word to lower case. The word will be converted to Pig Latin using the following rules a) If the word begins with a vowel, append way to the end of the word b) If the word begins with a constant, remove all consonants from the beginning of the word and append them to the end of the word. Then, append the end of the word For example: dog" become "ogday* scrate becomes atehasray" is becomes "way" apple becomes appleway llon becomes "ellohay "" becomes away" The program will halt when the re q ui "OUIT", "Ouit o n combination of lower and uppercase letters, such Seti a) Use. Lower) to change the word to lowercase b) How do you find the position of the first vowell I like ingenumerate vord) for ich in enumerate words where his each character in the word and is the characters index position c) Uses to isolate the first letter of each weed d) U s ing contention to form the equivalent Pig Latin words c) Use the in operator in the sta siou to best for v els Good practice definesco VOWELS - Lou * Test your program on Mini and demonstrate it to your TA. On-line students should saw the completed program named "laba.py) for grading is the re st DELE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

Give two reasons for modeling systems in state space.

Answered: 1 week ago