Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I NEED HELP!!! Program should be done on python! This program is meant to help give you practice with string manipulation. Pig Latin is a
I NEED HELP!!! Program should be done on python!
This program is meant to help give you practice with string manipulation. "Pig Latin" is a way of converting words in standard English to similar words that sound different. The rules for converting from standard words to Pig Latin are as follows: If a word starts with a consonant, move the consonants to the end of the word, and add "ay" to the end. o e.g. "computer" becomes "omputercay" If a word starts with a vowel, add "yay" on to the end of the word. o e.g. "engineering" becomes "engineeringyay" Note: treat "y" as a vowel for this assignment. Write a program that repeatedly reads in a word from a user and converts it to Pig Latin. The program should continue reading words until the user enters "stop" Challenge: Try to write a program where, instead of just one word, the user enters an entire sentence, and all words in the sentence are converted to Pig Latin. Program 2: (Vector Math) This program is meant to give you practice with lists and looping on them, as well as practice with vector computations Write a program that lets a user enter two vectors, A and B, of arbitrary dimension. You should allow the user to first enter the dimension of the vector, then get the elements of the two vectors from the user. Then, you should output (in a clearly labeled way), the results of these computations The magnitude of vector A and the magnitude of vector B And the dot product (inner product) of A and B Note: You should use lists when solving this problem. Later we will see some other ways to work with vectors more directlyStep 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