Answered step by step
Verified Expert Solution
Question
1 Approved Answer
USE PYTHON Demonstrate the use of reading input from a file Demonstrate use of Boolean logic Demonstrate good program structure Write a program that reads
USE PYTHON
Demonstrate the use of reading input from a file Demonstrate use of Boolean logic Demonstrate good program structure Write a program that reads a text file (English.txt) and converts it into Pig Latin." Your program should use separate functions to identify whether 1. or 2. apply below. Translate English to Pig Latin by following these two simple rules: 1. If the word begins with a consonant or two consonants, then move the first consonant or the first two consonants to the end of the word and add "ay." For example, "dusty" becomes "usty-day" and "choice" becomes "oice-chay." 2. If the word begins with a vowel, then just add "yay to the end of the word, For example, "apple" becomes "apple-yay" and "orange" becomes "orange-yay." For example, the phrase The deepest shade of mushroom blue would have the following appearance in Pig Latin: ethay eepestday adeshay ofay ushroommay ueblay english_text To be or not to be that is the question Whether tis nobler in the mind to suffer The slings and arrows of outrageous fortune Or to take arms against a sea of troubles And by opposing end themStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started