Question: Step 3 : Improve the program in the following two ways. _ _ _ _ _ _ _ _ _ _ _ _ _ _
Step : Improve the program in the following two ways. dog y dog Y hamster n Use a logical OR on lines and 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 spayneuter 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
