Answer: B. hummer
Explanation:
Given the array :
Given the arra
("explorer", "testa", "hummer", "corvette", "civic", "mustang")
Array indexing usually begins from 0
That is ; the first element in the array is indexed as being in position 0
Using the given array as an example :
Index ____ element
0 ______ explorer
1 _______ tester
2 _______hummer
3 _______ corvette
4 _______ civic
5 _______ mustang
Hence, element in index 2 of the array is hummer
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
Answer:
It would be Store
Explanation:
hope this helps if not sorry :(