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.
I'm guessing 8? But I'm not 100% positive
value = whatever you want
if not value < 13.6:
print("Value is greater than or equal to 13.6.")
else:
print("Value is less than 13.6.")
Answer:
Option C. Security+ is the correct answer.
Explanation:
Answer:
The answer is Break
<u>Explanation:</u>
When break statement is occurred then, it immediately exits from the loop and executed the statement after the loop without raising any kind of error.
<u>The situation after entering of a value by a user
</u>
- If the user entered incorrect value then it will exit from the loop.
- If the user entered correct input value, then it will run the loop for the further values.