Question: 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."

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 them

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!