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.
The LinkedIn Answers is a component of LinkedIn that allows
you to get fast and accurate solutions to your questions. It provides a forum
through which you can demonstrate your expertise by offering info to your
network. You should use LinkedIn answers to ask and answer questions.
Essentially, you should use it to provide examples to your work product,
decision making skills, and on an interactive basis.
Of course there is. On a simple level, consider a parent trying to locate their missing child. Someone might break into their social media accounts to see if there are messages that might help determine their whereabouts.
Consider a website hosting inappropriate pictures of children. Breaking into the server hosting the files and removing them is 100% ethical.
I'm sure you can think of more examples.
I believe that answer A is true