4.2 Code Practice: Question 2
Instructions
Write a loop that continually asks the user what p...
Computers and Technology, 29.10.2020 20:40 vale2652
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.
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)
Answers: 3
Computers and Technology, 22.06.2019 09:00, starwarsfan1975
Meenu wants to create a high quality drawing in a variety of colours. which device should she use for the same?
Answers: 1
Computers and Technology, 23.06.2019 15:00, med69
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a. an advanced knowledge of physics and math b. an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 2
Computers and Technology, 24.06.2019 00:00, BluedragonKBT44
The gene form of a trait is called a(n)
Answers: 2
Mathematics, 22.02.2021 19:40
Mathematics, 22.02.2021 19:40
Mathematics, 22.02.2021 19:40
English, 22.02.2021 19:40
Social Studies, 22.02.2021 19:40