Question: Write a Program in C Write a simple classification program for types of birds. The program should ask for the color of the feathers of

Write a Program in C

Write a simple classification program for types of birds. The program should ask for the color of the feathers of the bird the user is seeing. The only possible values are red, yellow, blue or green. If yellow, then it is a canary; if blue, then it is a bluebird; if red, then it is a cardinal; if green, then it is either a parrot or a parakeet. So, to disambiguate, between parrot and parakeet, ask for the size of its body. If big, then it is a parrot; if small, then a parakeet. There should be a printout stating the kind of bird, such as "The bird you are seeing is a parakeet", for example. Use character variables r for red; y for yellow; b for blue, g for green; b for big body and s for small body. You can use conditional constructs to determine which type of bird it is

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 Databases Questions!