Question: in python: Be sure to INCLUDE the program documentation and to follow the Program Submissions Guidelines document from the readings in Week # 5 .

in python:
Be sure to INCLUDE the program documentation and to follow the Program Submissions Guidelines document from the readings in Week #5.
Do NOT use methods or procedures that are beyond what we have covered in class so far -- including user defined functions, etc. You will receive a score of 0 if you do.
Write your program directly in the code editor below. Click on the "Run" button to execute the code and interact with the console window below the editor. Make sure that you follow the input and output formats.
Write a program that does the following:
1) Ask the user to -- Enter 'b' for bird or 'm' for mammal:
2) Validate that input to allow only b, B, m, or M
3) Print "That is not a valid input" if an incorrect value was entered and have the user re-enter the input
4) Upon successful input, display "You chose bird" or "You chose mammal" depending on their input.
Ex: If the input is:
Enter 'b' for bird or 'm' for mammal:B
the output is:
You chose bird
Ex: If the input is:
Enter 'b' for bird or 'm' for mammal:g
the output is:
That is not a valid input Enter 'b' for bird or 'm' for mammal: (*** the input starts over again until successful **)
Be sure to INCLUDE the program documentation and to follow the Program Submissions Guidelines document from the readings in Week \#5.
Do NOT use methods or procedures that are beyond what we have covered in class so far -- including user defined functions, etc. You will receive a score of 0 if you do.
Write your program directly in the code editor below. Click on the "Run" button to execute the code and interact with the console window below the editor. Make sure that you follow the input and output formats.
Write a program that does the following:
1) Ask the user to -- Enter 'b' for bird or 'm' for mammal:
2) Validate that input to allow only \( b, B, m \), or \( M \)
3) Print "That is not a valid input" if an incorrect value was entered and have the user re-enter the input
4) Upon successful input, display "You chose bird" or "You chose mammal" depending on their input.
Ex: If the input is:
Enter 'b' for bird or 'm' for mammal: B the output is:
You chose bird
Ex: If the input is:
Enter 'b' for bird or 'm' for mammal: g the output is:
```
That is not a valid input
Enter 'b' for bird or 'm' for mammal:
(*** the input starts over again until successful **)
```
in python: Be sure to INCLUDE the program

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!