Question: Step 3 : Improve the program in the following two ways. Use a logical OR on lines 2 2 and 2 8 so that either

Step 3: Improve the program in the following two ways. Use a logical OR on lines 22 and 28 so that either a lowercase y or an uppercase Y is accepted. Currently when an animal other than a cat or dog is entered (such as a hamster), the program asks if it is spayed or neutered before displaying the message that only cats and dogs need pet tags. Find a way to make the program only execute the spay/neuter prompt and input when the pet type is cat or dog

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!