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,D,C,B are the correct answers
Explanation:
Hope this helps:)
Answer:
B) An Algorithm
Explanation:
An algorithm is defined as the step-by-step solution to a given problem that follows a logical sequence and which is also finite. In mathematics and computer science, the first step in solving a given problem is writing out the algorithm which will include steps for calculations, decisions, data processing, input/output etc. There are scientific ways of representing algorithms through the use of flowcharts, pseudocodes, data flow diagrams etc.
Answer: Other people can access the same network and may have access to parts of your computer to try and steel your data.
Explanation:
Answer:
The correct answer to the following question will be "_msdcs".
Explanation:
Msdcs directory known as Microsoft Domain Controller Catalog requires SRV documents that are used to identify domain controller for certain operations.
- It automatically generated subdomain keeps all Microsoft-hosted resources SRV data, so it's the correct answer.
- It includes common SRV documents, documents of LDAP, documents of Kpass, CNAME, etc.