Answer:
hope it's help you..............
.....If the colors are from different segments of the color wheel.
Answer:
what design do you want, also what design am i redesigning.
Answer:
The correct answer to the following question will be 2. the operator new.
Explanation:
New operator is used to allocating the memory to the instance object.The new object can be created by using a "new" keyword in java .
Syntax of using 'new' operator is :
class_name object_name=new class_name() // it allocated the memory to the class
For Example :
ABC obj = new ABC;
Now, this time obj points to the object of the ABC class.
obj = new ABC ();
call the construction of ABC class
Answer:
count_land = count_air = count_water = 0
while True:
s = input("Enter a string: ")
if s == "xxxxx":
break
else:
if s == "land":
count_land += 1
elif s == "air":
count_air += 1
elif s == "water":
count_water += 1
print("land: " + str(count_land))
print("air: " + str(count_air))
print("water: " + str(count_water))
Explanation:
*The code is in Python
Initialize the variables
Create a while loop that iterates until a specific condition is met. Inside the loop, ask the user to enter the string. If it is "xxxxx", stop the loop. Otherwise, check if it is "land", "air", or "water". If it is one of the given strings, increment its counter by 1
When the loop is done, print the number of strings entered in the required format