Answer:
B contains the highest value in the array
Explanation:
Such that the first if statement will execute and like wise the second if statement will execute thereby increasing the value of b
Answer:
peer-to-peer network
Explanation:
i think i'm not sure though so tell me if it is wrong :)
Answer:
int counter = 0;
String userInput = "";
while (userInput != "stop") {
print "What pet do you have? ";
userInput = readInputLine();
if (userInput != "stop" ){
counter = counter + 1;
print "\nYou have one ";
print userInput;
print ". Total # of Pets: ";
print counter;
}
}
Explanation:
not sure what programming language you use, therefore the answer is pseudocode but it should give you an idea how to implement a piece of code for this problem.
Also, from the way you described the exercise I'm not sure if you always are supposed to reply with "you have one" + the pet or if you should count how often the same pet was entered.
Your IP address, also known as Internet Protocol