Answer:
userInput = str(input("Enter your sentence here.\n")).upper()
def getPigLatin(userInput):
splitInput = userInput.split(" ")
newList = []
for word in splitInput:
firstLetter = word[0]
if len(word) == 1:
word += 'AY'
newList.append(word)
else:
word = word.strip(word[0])
word += firstLetter
word += 'AY'
newList.append(word)
print(*newList, sep= " ")
getPigLatin(userInput)
Explanation:
This solution is done in Python
First the user is prompt to enter a statement, the statement converted to string and also capitalize using str and upper() built-in function. The user input is assigned to userInput variable.
The getPigLatin function is defined and it accept a string as parameter. Inside the getPigLatin function, the userInput is splitted and assigned to splitInput variable.
An empty list is also initialized and assigned to newList. Next, we loop through the splitInput. During the loop; we first check if the length of an element is one, then we just add 'AY' to the element and add the element to the newList. Else, if the element length is more than one; we strip the first letter from the word and also re-assign it to word, then the stripped first letter is added to the end of the word. Next, 'AY' is added to the word and the element is add to the newList.
The last line of the getPigLatin function display the entire element of the list using a space seperator.
The last line of the entire solution call the function passing in the userInput as argument.
Answer:
A statement in Visual Basic is a complete instruction. It can contain keywords, operators, variables, constants, and expressions. Each statement belongs to one of the following three categories: Declaration statements, which name a variable, constant, or procedure and can also specify a data type.
Answer:
Explanation:
All the steps are really important in a project, but we can mention some critical steps like planning and monitoring.
If we're planning our project carefully, we're going to have fewer problem in the future, in this step we need to establish every single detail, in this way, we will not have any problem with the other steps.
If we're monitoring the project we could detect some issues, in this case, we can update and fix the inconvenience.
Answer:
master file contains data types while transaction file is used to record Master file
Explanation:
hope it helps
Answer:
DNA Analytics
Explanation:
Technology allows people to digitize DNA (transfer it to a digital format) this allows for people to use computers in order to analyze genetic information in order to provide consumer uses, such as ancestry tests. This also allows scientists to develop new treatments for certain genetic conditions.