def pig_latin(word):
if word[0].lower() in 'aeiou':
word = word + 'way'
else:
t=''
for x in range(len(word)):
if word[x].lower() in 'aeiou':
break
if word[x].lower() == 'y' and x>0:
break
else:
t+=word[x].lower()
if word[0].isupper():
word = word[len(t):]+word[:len(t)].lower()+'ay'
word = word.title()
else:
word = word[len(t):]+word[:len(t)].lower()+'ay'
return word
word = 'test'
pl = pig_latin(word)
print(pl)
I wrote my code in python 3.8. I hope this helps.
The area that holds all the instructions the computer needs to start up when it is powered on is b) ROM
Further Explanation:
RAM and ROM are the types of memory. RAM is the active memory. The data can be read and written from RAM. While ROM is read only which meas that data or instructions on ROM cannot be changed.
The files or instructions that are needed to start up a computer are usually unchangeable as they always have to be the same. These type of instructions are stored in ROM. When he computer is turned on, the instructions needed to start the computer are loaded into the main memory from the ROM.
Hence, ROM is the correct answer.
Learn more at:
#LearnwithBrainly
Answer:
A. Multi-field attributes
B. A ternary relationship
C. A unary relationship
The program is an illustration of string manipulations
<h3>What are string manipulations?</h3>
String manipulations include calculating the lengths of strings and also performing several operations on the string
<h3>The actual program</h3>
The complete program in C++ is as follows:
#include <iostream>
using namespace std;
int main(){
string passwordStr;
cin>>passwordStr;
if(passwordStr.length() <= 7){
cout<<"Valid";
}
else{
cout<<"Invalid";
}
return 0;
}
Read more string manipulation at:
brainly.com/question/14284563