<span>A method in a class that modifies information about an object is called a <u>mutator</u> method.</span>
1. ughhhh not entirely sure but B, 2. again not entirely sure should be B as well and finally 3.is D remember these are not always the answer just most likely what one person thinks
Answer:
public static void PrintShampooInstructions(int numberOfCycles){
if (numberOfCycles<1){
System.out.println("Too Few");
}
else if(numberOfCycles>4){
System.out.println("Too many");
}
else
for(int i = 1; i<=numberOfCycles; i++){
System.out.println(i +": Lather and rinse");
}
System.out.println("Done");
}
Explanation:
I have used Java Programming language to solve this
Use if...elseif and else statement to determine and print "Too Few" or "Too Many".
If within range use a for loop to print the number of times
Answer:
They can be used to store homework, presentations, research, papers, essays and etc. They can be used to hand out homework assignments, course information or notes
Answer:
list_one=[]
list_two=[]
list_three=[]
str1=input("list_one:")
for i in str1:
if i.isdigit():
i=int(i)
list_one.append(i)
elif i.isalpha():
list_one.append(i)
str2=input("list_two:")
for i in str2:
if i.isdigit():
i=int(i)
list_two.append(i)
elif i.isalpha():
list_two.append(i)
print(list_one)
print(list_two)
if len(list_one)==len(list_two):
for i in range(len(list_one)):
multiply=list_one[i]*list_two[i]
add=str(multiply)
list_three.append(add)
else:
print("Index out of bound")
n=0
for i in list_three:
if i.isdigit():
n+=1
else:
print("The list has some non number values")
print(list_three)