subject

4.2 Code Practice: Question 2 Instructions
Write a loop that continually asks the user what pets the user has until the user enters rock, in which case the loop ends. It should
acknowledge the user in the following format. For the first pet, it should say you have a dog with a total of 1 pet(s) if they enter dog, and
so on
cate
Sample Run
What pet do you have? lemur
what pet do you have? parrot
what pet do you have? cat
what pet do you have? rock
Sample Output
You have a lemur with a total of 1 pet(s)
You have a parrot with a total of 2 pet(s)
You have a cat with a total of 3 pet(s)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
In a cellular network each cell is controlled by a tower what are these towers called?
Answers: 3
question
Computers and Technology, 23.06.2019 00:10
My has been slow anyone else’s ?
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
question
Computers and Technology, 24.06.2019 10:30
You're programming an infinite loop. what must you include in your code to prevent crashes? in roblox
Answers: 2
You know the right answer?
4.2 Code Practice: Question 2 Instructions
Write a loop that continually asks the user what p...
Questions
question
Computers and Technology, 17.09.2019 00:30
question
Mathematics, 17.09.2019 00:30